renatotn7 commited on
Commit
364e6d5
·
1 Parent(s): 49b73e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -213,7 +213,7 @@ def create_ui(inputAudioMaxDuration, share=False, server_name: str = None):
213
  ui_description += " audio and is also a multi-task model that can perform multilingual speech recognition "
214
  ui_description += " as well as speech translation and language identification. "
215
 
216
- ui_description += "\n\n\n\nFor longer audio files (>10 minutes) not in English, it is recommended that you select Silero VAD (Voice Activity Detector) in the VAD option."
217
 
218
  if inputAudioMaxDuration > 0:
219
  ui_description += "\n\n" + "Max audio file length: " + str(inputAudioMaxDuration) + " s"
@@ -222,7 +222,7 @@ def create_ui(inputAudioMaxDuration, share=False, server_name: str = None):
222
 
223
  demo = gr.Interface(fn=ui.transcribe_webui, description=ui_description, article=ui_article, inputs=[
224
  gr.Dropdown(choices=["medium.en", "large"], value="medium.en", label="Model"),
225
- gr.Dropdown(choices=sorted(LANGUAGES), label="Language"),
226
  gr.Text(label="URL (YouTube, etc.)"),
227
  # gr.Audio(source="upload", type="filepath", label="Upload Audio"),
228
  gr.File(label="submeta seu video",interactive=True),
@@ -237,7 +237,7 @@ def create_ui(inputAudioMaxDuration, share=False, server_name: str = None):
237
  gr.File(label="Download"),
238
  gr.Text(label="Transcription"),
239
  gr.Text(label="Segments"),
240
- gr.Text(label="Videos")
241
  ])
242
 
243
  demo.launch(share=share, server_name=server_name)
 
213
  ui_description += " audio and is also a multi-task model that can perform multilingual speech recognition "
214
  ui_description += " as well as speech translation and language identification. "
215
 
216
+ # ui_description += "\n\n\n\nFor longer audio files (>10 minutes) not in English, it is recommended that you select Silero VAD (Voice Activity Detector) in the VAD option."
217
 
218
  if inputAudioMaxDuration > 0:
219
  ui_description += "\n\n" + "Max audio file length: " + str(inputAudioMaxDuration) + " s"
 
222
 
223
  demo = gr.Interface(fn=ui.transcribe_webui, description=ui_description, article=ui_article, inputs=[
224
  gr.Dropdown(choices=["medium.en", "large"], value="medium.en", label="Model"),
225
+ gr.Dropdown(choices=sorted(LANGUAGES), value="Portuguese",label="Language"),
226
  gr.Text(label="URL (YouTube, etc.)"),
227
  # gr.Audio(source="upload", type="filepath", label="Upload Audio"),
228
  gr.File(label="submeta seu video",interactive=True),
 
237
  gr.File(label="Download"),
238
  gr.Text(label="Transcription"),
239
  gr.Text(label="Segments"),
240
+ #gr.Text(label="Videos")
241
  ])
242
 
243
  demo.launch(share=share, server_name=server_name)