salmanmapkar commited on
Commit
6ac6878
1 Parent(s): 2c95b46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -20
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.Tab("Youtube", id=1):
333
- yinput_nos = gr.Number(label="Number of Speakers", placeholder="2")
334
- 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")
335
- yinput = gr.Textbox(label="Youtube Link", placeholder="https://www.youtube.com/watch?v=GECcjrYHH8w")
336
- ybutton_transcribe = gr.Button("Transcribe", show_progress=True, scroll_to_output=True)
337
- with gr.Tab("Video", id=2):
338
- vinput_nos = gr.Number(label="Number of Speakers", placeholder="2")
339
- 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")
340
- vinput = gr.Video(label="Video")
341
- vbutton_transcribe = gr.Button("Transcribe", show_progress=True, scroll_to_output=True)
342
- with gr.Tab("Audio", id=3):
343
- ainput_nos = gr.Number(label="Number of Speakers", placeholder="2")
344
- 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")
345
- ainput = gr.Audio(label="Audio", type="filepath")
346
- abutton_transcribe = gr.Button("Transcribe", show_progress=True, scroll_to_output=True)
347
- with gr.Column():
348
- with gr.Tab("Text"):
349
- output_textbox = gr.Textbox(label="Transcribed Text", lines=15)
350
- with gr.Tab("JSON"):
351
- output_json = gr.JSON(label="Transcribed JSON")
 
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],