juulaii commited on
Commit
36e373b
1 Parent(s): f794f86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  #Get models
4
  #ASR model for input speech
5
  speech2text = gr.Interface.load("huggingface/facebook/hubert-large-ls960-ft",
6
- inputs=gr.inputs.Audio(label="Record Audio", type="file", source = "microphone"))
7
 
8
  #translates English to Spanish text
9
  translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es",
 
3
  #Get models
4
  #ASR model for input speech
5
  speech2text = gr.Interface.load("huggingface/facebook/hubert-large-ls960-ft",
6
+ inputs=gr.inputs.Audio(label="Record Audio", type="filepath", source = "microphone"))
7
 
8
  #translates English to Spanish text
9
  translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es",