Spaces:
Running
Running
jhj0517
commited on
Commit
β’
7ef14ed
1
Parent(s):
fec84a3
upgraded gradio version to 3.37.0
Browse files- app.py +9 -9
- requirements.txt +1 -1
app.py
CHANGED
@@ -49,8 +49,8 @@ with block:
|
|
49 |
with gr.Row():
|
50 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
51 |
with gr.Row():
|
52 |
-
tb_indicator = gr.Textbox(label="Output")
|
53 |
-
btn_openfolder = gr.Button('π'
|
54 |
|
55 |
btn_run.click(fn=whisper_inf.transcribe_file,
|
56 |
inputs=[input_file, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
@@ -60,7 +60,7 @@ with block:
|
|
60 |
with gr.TabItem("Youtube"): # tab2
|
61 |
with gr.Row():
|
62 |
tb_youtubelink = gr.Textbox(label="Youtube Link")
|
63 |
-
with gr.Row(
|
64 |
with gr.Column():
|
65 |
img_thumbnail = gr.Image(label="Youtube Thumbnail")
|
66 |
with gr.Column():
|
@@ -76,8 +76,8 @@ with block:
|
|
76 |
with gr.Row():
|
77 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
78 |
with gr.Row():
|
79 |
-
tb_indicator = gr.Textbox(label="Output")
|
80 |
-
btn_openfolder = gr.Button('π'
|
81 |
|
82 |
btn_run.click(fn=whisper_inf.transcribe_youtube,
|
83 |
inputs=[tb_youtubelink, dd_model, dd_lang, dd_subformat, cb_translate],
|
@@ -100,8 +100,8 @@ with block:
|
|
100 |
with gr.Row():
|
101 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
102 |
with gr.Row():
|
103 |
-
tb_indicator = gr.Textbox(label="Output")
|
104 |
-
btn_openfolder = gr.Button('π'
|
105 |
|
106 |
btn_run.click(fn=whisper_inf.transcribe_mic,
|
107 |
inputs=[mic_input, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
@@ -122,8 +122,8 @@ with block:
|
|
122 |
with gr.Row():
|
123 |
btn_run = gr.Button("TRANSLATE SUBTITLE FILE", variant="primary")
|
124 |
with gr.Row():
|
125 |
-
tb_indicator = gr.Textbox(label="Output")
|
126 |
-
btn_openfolder = gr.Button('π'
|
127 |
with gr.Column():
|
128 |
md_vram_table = gr.HTML(NLLB_VRAM_TABLE, elem_id="md_nllb_vram_table")
|
129 |
|
|
|
49 |
with gr.Row():
|
50 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
51 |
with gr.Row():
|
52 |
+
tb_indicator = gr.Textbox(label="Output", scale=8)
|
53 |
+
btn_openfolder = gr.Button('π', scale=2)
|
54 |
|
55 |
btn_run.click(fn=whisper_inf.transcribe_file,
|
56 |
inputs=[input_file, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
|
|
60 |
with gr.TabItem("Youtube"): # tab2
|
61 |
with gr.Row():
|
62 |
tb_youtubelink = gr.Textbox(label="Youtube Link")
|
63 |
+
with gr.Row(equal_height=True):
|
64 |
with gr.Column():
|
65 |
img_thumbnail = gr.Image(label="Youtube Thumbnail")
|
66 |
with gr.Column():
|
|
|
76 |
with gr.Row():
|
77 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
78 |
with gr.Row():
|
79 |
+
tb_indicator = gr.Textbox(label="Output", scale=8)
|
80 |
+
btn_openfolder = gr.Button('π', scale=2)
|
81 |
|
82 |
btn_run.click(fn=whisper_inf.transcribe_youtube,
|
83 |
inputs=[tb_youtubelink, dd_model, dd_lang, dd_subformat, cb_translate],
|
|
|
100 |
with gr.Row():
|
101 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
102 |
with gr.Row():
|
103 |
+
tb_indicator = gr.Textbox(label="Output", scale=8)
|
104 |
+
btn_openfolder = gr.Button('π', scale=2)
|
105 |
|
106 |
btn_run.click(fn=whisper_inf.transcribe_mic,
|
107 |
inputs=[mic_input, dd_model, dd_lang, dd_subformat, cb_translate], outputs=[tb_indicator])
|
|
|
122 |
with gr.Row():
|
123 |
btn_run = gr.Button("TRANSLATE SUBTITLE FILE", variant="primary")
|
124 |
with gr.Row():
|
125 |
+
tb_indicator = gr.Textbox(label="Output", scale=8)
|
126 |
+
btn_openfolder = gr.Button('π', scale=2)
|
127 |
with gr.Column():
|
128 |
md_vram_table = gr.HTML(NLLB_VRAM_TABLE, elem_id="md_nllb_vram_table")
|
129 |
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu117
|
2 |
torch
|
3 |
git+https://github.com/jhj0517/jhj0517-whisper.git
|
4 |
-
gradio==3.
|
5 |
pytube
|
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu117
|
2 |
torch
|
3 |
git+https://github.com/jhj0517/jhj0517-whisper.git
|
4 |
+
gradio==3.37.0
|
5 |
pytube
|