Spaces:
Runtime error
Runtime error
jhj0517 commited on
Commit ·
9f11092
1
Parent(s): 94dc4dc
fix typo
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ with block:
|
|
| 48 |
|
| 49 |
btn_run.click(fn=whisper_inf.transcribe_file,
|
| 50 |
inputs=[input_file, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
| 51 |
-
btn_openfolder.click(fn=lambda:
|
| 52 |
dd_model.change(fn=on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 53 |
|
| 54 |
with gr.TabItem("Youtube"): # tab2
|
|
@@ -78,7 +78,7 @@ with block:
|
|
| 78 |
outputs=[tb_indicator])
|
| 79 |
tb_youtubelink.change(get_ytmetas, inputs=[tb_youtubelink],
|
| 80 |
outputs=[img_thumbnail, tb_title, tb_description])
|
| 81 |
-
btn_openfolder.click(fn=lambda:
|
| 82 |
dd_model.change(fn=on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 83 |
|
| 84 |
with gr.TabItem("Mic"): # tab3
|
|
@@ -99,7 +99,7 @@ with block:
|
|
| 99 |
|
| 100 |
btn_run.click(fn=whisper_inf.transcribe_mic,
|
| 101 |
inputs=[mic_input, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
| 102 |
-
btn_openfolder.click(fn=lambda:
|
| 103 |
dd_model.change(fn=on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 104 |
|
| 105 |
with gr.TabItem("T2T Translation"): # tab 4
|
|
@@ -124,7 +124,7 @@ with block:
|
|
| 124 |
btn_run.click(fn=nllb_inf.translate_file,
|
| 125 |
inputs=[file_subs, dd_nllb_model, dd_nllb_sourcelang, dd_nllb_targetlang],
|
| 126 |
outputs=[tb_indicator])
|
| 127 |
-
btn_openfolder.click(fn=lambda:
|
| 128 |
|
| 129 |
|
| 130 |
block.launch()
|
|
|
|
| 48 |
|
| 49 |
btn_run.click(fn=whisper_inf.transcribe_file,
|
| 50 |
inputs=[input_file, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
| 51 |
+
btn_openfolder.click(fn=lambda: open_folder("outputs"), inputs=None, outputs=None)
|
| 52 |
dd_model.change(fn=on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 53 |
|
| 54 |
with gr.TabItem("Youtube"): # tab2
|
|
|
|
| 78 |
outputs=[tb_indicator])
|
| 79 |
tb_youtubelink.change(get_ytmetas, inputs=[tb_youtubelink],
|
| 80 |
outputs=[img_thumbnail, tb_title, tb_description])
|
| 81 |
+
btn_openfolder.click(fn=lambda: open_folder("outputs"), inputs=None, outputs=None)
|
| 82 |
dd_model.change(fn=on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 83 |
|
| 84 |
with gr.TabItem("Mic"): # tab3
|
|
|
|
| 99 |
|
| 100 |
btn_run.click(fn=whisper_inf.transcribe_mic,
|
| 101 |
inputs=[mic_input, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
| 102 |
+
btn_openfolder.click(fn=lambda: open_folder("outputs"), inputs=None, outputs=None)
|
| 103 |
dd_model.change(fn=on_change_models, inputs=[dd_model], outputs=[cb_translate])
|
| 104 |
|
| 105 |
with gr.TabItem("T2T Translation"): # tab 4
|
|
|
|
| 124 |
btn_run.click(fn=nllb_inf.translate_file,
|
| 125 |
inputs=[file_subs, dd_nllb_model, dd_nllb_sourcelang, dd_nllb_targetlang],
|
| 126 |
outputs=[tb_indicator])
|
| 127 |
+
btn_openfolder.click(fn=lambda: open_folder("outputs\\translations"), inputs=None, outputs=None)
|
| 128 |
|
| 129 |
|
| 130 |
block.launch()
|