Spaces:
Runtime error
Runtime error
Commit
·
6ac6878
1
Parent(s):
2c95b46
Update app.py
Browse files
app.py
CHANGED
@@ -329,26 +329,27 @@ at = gr.Interface(
|
|
329 |
# demo.launch()
|
330 |
with gr.Blocks() as yav_ui:
|
331 |
with gr.Column():
|
332 |
-
with gr.
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
with gr.
|
349 |
-
|
350 |
-
|
351 |
-
|
|
|
352 |
ybutton_transcribe.click(
|
353 |
fn=YoutubeTranscribe,
|
354 |
inputs=[yinput_nos,yinput_sn,yinput],
|
|
|
329 |
# demo.launch()
|
330 |
with gr.Blocks() as yav_ui:
|
331 |
with gr.Column():
|
332 |
+
with gr.Row():
|
333 |
+
with gr.Tab("Youtube", id=1):
|
334 |
+
yinput_nos = gr.Number(label="Number of Speakers", placeholder="2")
|
335 |
+
yinput_sn = gr.Textbox(label="Name of the Speakers (ordered by the time they speak and separated by comma)", placeholder="If Speaker 1 is first to speak followed by Speaker 2 then -> Speaker 1, Speaker 2")
|
336 |
+
yinput = gr.Textbox(label="Youtube Link", placeholder="https://www.youtube.com/watch?v=GECcjrYHH8w")
|
337 |
+
ybutton_transcribe = gr.Button("Transcribe", show_progress=True, scroll_to_output=True)
|
338 |
+
with gr.Tab("Video", id=2):
|
339 |
+
vinput_nos = gr.Number(label="Number of Speakers", placeholder="2")
|
340 |
+
vinput_sn = gr.Textbox(label="Name of the Speakers (ordered by the time they speak and separated by comma)", placeholder="If Speaker 1 is first to speak followed by Speaker 2 then -> Speaker 1, Speaker 2")
|
341 |
+
vinput = gr.Video(label="Video")
|
342 |
+
vbutton_transcribe = gr.Button("Transcribe", show_progress=True, scroll_to_output=True)
|
343 |
+
with gr.Tab("Audio", id=3):
|
344 |
+
ainput_nos = gr.Number(label="Number of Speakers", placeholder="2")
|
345 |
+
ainput_sn = gr.Textbox(label="Name of the Speakers (ordered by the time they speak and separated by comma)", placeholder="If Speaker 1 is first to speak followed by Speaker 2 then -> Speaker 1, Speaker 2")
|
346 |
+
ainput = gr.Audio(label="Audio", type="filepath")
|
347 |
+
abutton_transcribe = gr.Button("Transcribe", show_progress=True, scroll_to_output=True)
|
348 |
+
with gr.Row():
|
349 |
+
with gr.Tab("Text"):
|
350 |
+
output_textbox = gr.Textbox(label="Transcribed Text", lines=15)
|
351 |
+
with gr.Tab("JSON"):
|
352 |
+
output_json = gr.JSON(label="Transcribed JSON")
|
353 |
ybutton_transcribe.click(
|
354 |
fn=YoutubeTranscribe,
|
355 |
inputs=[yinput_nos,yinput_sn,yinput],
|