Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,10 @@ def translate_speech(audio):
|
|
| 18 |
# Build Gradio Interface
|
| 19 |
interface = gr.Interface(
|
| 20 |
fn=translate_speech,
|
| 21 |
-
inputs=gr.Audio(
|
| 22 |
outputs="text",
|
| 23 |
title="Finnish to English Speech Translator",
|
| 24 |
-
description="This app translates Finnish speech to English text. You can
|
| 25 |
)
|
| 26 |
|
| 27 |
# Launch the app
|
|
|
|
| 18 |
# Build Gradio Interface
|
| 19 |
interface = gr.Interface(
|
| 20 |
fn=translate_speech,
|
| 21 |
+
inputs=gr.Audio(type="filepath"), # Remove the 'source' argument
|
| 22 |
outputs="text",
|
| 23 |
title="Finnish to English Speech Translator",
|
| 24 |
+
description="This app translates Finnish speech to English text. You can upload an audio file, and see the translation appear in English!"
|
| 25 |
)
|
| 26 |
|
| 27 |
# Launch the app
|