Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,6 @@ class VadOptions:
|
|
83 |
else VadInitialPromptMode.from_string(vadInitialPromptMode)
|
84 |
|
85 |
class WhisperTranscriber:
|
86 |
-
@spaces.GPU(duration=60)
|
87 |
def __init__(self, input_audio_max_duration: float = None, vad_process_timeout: float = None,
|
88 |
vad_cpu_cores: int = 1, delete_uploaded_files: bool = False, output_dir: str = None,
|
89 |
app_config: ApplicationConfig = None):
|
@@ -140,6 +139,7 @@ class WhisperTranscriber:
|
|
140 |
|
141 |
return self.transcribe_webui(dataDict, progress=progress)
|
142 |
|
|
|
143 |
def transcribe_webui(self, decodeOptions: dict, progress: gr.Progress = None):
|
144 |
"""
|
145 |
Transcribe an audio file using Whisper
|
|
|
83 |
else VadInitialPromptMode.from_string(vadInitialPromptMode)
|
84 |
|
85 |
class WhisperTranscriber:
|
|
|
86 |
def __init__(self, input_audio_max_duration: float = None, vad_process_timeout: float = None,
|
87 |
vad_cpu_cores: int = 1, delete_uploaded_files: bool = False, output_dir: str = None,
|
88 |
app_config: ApplicationConfig = None):
|
|
|
139 |
|
140 |
return self.transcribe_webui(dataDict, progress=progress)
|
141 |
|
142 |
+
@spaces.GPU(duration=60)
|
143 |
def transcribe_webui(self, decodeOptions: dict, progress: gr.Progress = None):
|
144 |
"""
|
145 |
Transcribe an audio file using Whisper
|