Spaces:
Runtime error
Runtime error
Commit ·
14fc70e
1
Parent(s): 4c24256
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,12 +28,11 @@ def speech_to_speech_translation(audio_filepath):
|
|
| 28 |
return translated_text
|
| 29 |
|
| 30 |
demo = gr.Blocks()
|
| 31 |
-
|
| 32 |
-
mic_translate = gr.Interface(
|
| 33 |
-
fn=speech_to_speech_translation,
|
| 34 |
-
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 35 |
-
outputs="text",allow_flagging="never")
|
| 36 |
-
|
| 37 |
with demo:
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
demo.launch(debug=True, share=False)
|
|
|
|
| 28 |
return translated_text
|
| 29 |
|
| 30 |
demo = gr.Blocks()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
with demo:
|
| 32 |
+
|
| 33 |
+
gr.Interface(
|
| 34 |
+
fn=speech_to_speech_translation,
|
| 35 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 36 |
+
outputs=gr.Textbox(label="Translation"),allow_flagging="never")
|
| 37 |
+
|
| 38 |
demo.launch(debug=True, share=False)
|