Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def process_audio(audio_data):
|
|
| 22 |
# Define the Gradio Interface
|
| 23 |
interface = gr.Interface(
|
| 24 |
fn=process_audio,
|
| 25 |
-
inputs=gr.Audio(
|
| 26 |
outputs=[gr.Textbox(label="Generated Text"), gr.Audio(label="Generated Speech")],
|
| 27 |
live=True
|
| 28 |
)
|
|
|
|
| 22 |
# Define the Gradio Interface
|
| 23 |
interface = gr.Interface(
|
| 24 |
fn=process_audio,
|
| 25 |
+
inputs=gr.Audio(type="numpy"), # Removed 'source' argument and kept 'type'
|
| 26 |
outputs=[gr.Textbox(label="Generated Text"), gr.Audio(label="Generated Speech")],
|
| 27 |
live=True
|
| 28 |
)
|