Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
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="file", source = "microphone"))
|
7 |
|
8 |
#translates english to spanish text
|
9 |
translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es",
|