Spaces:
Runtime error
Runtime error
jhj0517 commited on
Commit ·
1995790
1
Parent(s): d94782b
debug decorator
Browse files- app.py +1 -1
- modules/whisper/whisper_base.py +2 -1
app.py
CHANGED
|
@@ -160,7 +160,7 @@ class App:
|
|
| 160 |
diarization_device=dd_diarization_device)
|
| 161 |
|
| 162 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
| 163 |
-
inputs=params,
|
| 164 |
outputs=[tb_indicator, files_subtitles])
|
| 165 |
dd_model.change(fn=self.on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 166 |
|
|
|
|
| 160 |
diarization_device=dd_diarization_device)
|
| 161 |
|
| 162 |
btn_run.click(fn=self.whisper_inf.transcribe_file,
|
| 163 |
+
inputs=params+whisper_params.as_list(),
|
| 164 |
outputs=[tb_indicator, files_subtitles])
|
| 165 |
dd_model.change(fn=self.on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 166 |
|
modules/whisper/whisper_base.py
CHANGED
|
@@ -125,7 +125,8 @@ class WhisperBase(ABC):
|
|
| 125 |
elapsed_time += elapsed_time_diarization
|
| 126 |
return result, elapsed_time
|
| 127 |
|
| 128 |
-
|
|
|
|
| 129 |
def transcribe_file(self,
|
| 130 |
files,
|
| 131 |
file_format,
|
|
|
|
| 125 |
elapsed_time += elapsed_time_diarization
|
| 126 |
return result, elapsed_time
|
| 127 |
|
| 128 |
+
# spaces is problematic
|
| 129 |
+
#@spaces.GPU(duration=120)
|
| 130 |
def transcribe_file(self,
|
| 131 |
files,
|
| 132 |
file_format,
|