Update app.py
Browse files
app.py
CHANGED
@@ -339,7 +339,7 @@ class App:
|
|
339 |
#btn_run.click(fn=self.whisper_inf.transcribe_file,
|
340 |
# inputs=params + whisper_params.as_list(),
|
341 |
# outputs=[tb_indicator, files_subtitles, tb_info])
|
342 |
-
btn_run.click(fn=self.get_transcription,inputs=params
|
343 |
|
344 |
#btn_run.click(fn=self.update_dataframe,inputs=[cb_timestamp_preview,cb_diarize],outputs=tb_indicator)
|
345 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
@@ -404,8 +404,8 @@ class App:
|
|
404 |
return gr.Dataframe(headers=["Text"],column_widths=["99%"])
|
405 |
|
406 |
@staticmethod
|
407 |
-
def get_transcription(
|
408 |
-
gr.Dataframe, gr.Files, gr.textbox = self.whisper_inf.transcribe_file(
|
409 |
return gr.Dataframe, gr.Files, gr.textbox
|
410 |
|
411 |
# Create the parser for command-line arguments
|
|
|
339 |
#btn_run.click(fn=self.whisper_inf.transcribe_file,
|
340 |
# inputs=params + whisper_params.as_list(),
|
341 |
# outputs=[tb_indicator, files_subtitles, tb_info])
|
342 |
+
btn_run.click(fn=self.get_transcription,inputs=[params, whisper_params.as_list()],outputs=[tb_indicator, files_subtitles, tb_info])
|
343 |
|
344 |
#btn_run.click(fn=self.update_dataframe,inputs=[cb_timestamp_preview,cb_diarize],outputs=tb_indicator)
|
345 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
|
|
404 |
return gr.Dataframe(headers=["Text"],column_widths=["99%"])
|
405 |
|
406 |
@staticmethod
|
407 |
+
def get_transcription(params, whisper_params):
|
408 |
+
gr.Dataframe, gr.Files, gr.textbox = self.whisper_inf.transcribe_file(params + whisper_params.as_list())
|
409 |
return gr.Dataframe, gr.Files, gr.textbox
|
410 |
|
411 |
# Create the parser for command-line arguments
|