erastorgueva-nv commited on
Commit
bcd5b7d
1 Parent(s): e6b72d1

update Audio param to sources

Browse files

Signed-off-by: Elena Rastorgueva <[email protected]>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -275,8 +275,8 @@ with gr.Blocks(title="NeMo Forced Aligner", theme="huggingface") as demo:
275
  gr.Markdown("## Input")
276
  lang_drop = gr.Dropdown(choices=["de", "en", "es", "fr", "zh"], value="en", label="Audio language",)
277
 
278
- mic_in = gr.Audio(source="microphone", type='filepath', label="Microphone input (max 4 mins)")
279
- audio_file_in = gr.Audio(source="upload", type='filepath', label="File upload (max 4 mins)")
280
  ref_text = gr.Textbox(
281
  label="[Optional] The reference text. Use '|' separators to specify which text will appear together. "
282
  "Leave this field blank to use an ASR model's transcription as the reference text instead."
 
275
  gr.Markdown("## Input")
276
  lang_drop = gr.Dropdown(choices=["de", "en", "es", "fr", "zh"], value="en", label="Audio language",)
277
 
278
+ mic_in = gr.Audio(sources=["microphone"], type='filepath', label="Microphone input (max 4 mins)")
279
+ audio_file_in = gr.Audio(sources=["upload"], type='filepath', label="File upload (max 4 mins)")
280
  ref_text = gr.Textbox(
281
  label="[Optional] The reference text. Use '|' separators to specify which text will appear together. "
282
  "Leave this field blank to use an ASR model's transcription as the reference text instead."