Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def convert_audio(filepath, voice="indian_F_1"):
|
|
55 |
interface = gr.Interface(
|
56 |
fn=convert_audio,
|
57 |
inputs=[
|
58 |
-
gr.Audio(
|
59 |
gr.Dropdown(VOICE_OPTIONS, value="indian_f_1", label="Select voice:", type="value")
|
60 |
],
|
61 |
outputs=gr.Audio(label="streaming audio:", streaming=True, autoplay=True),
|
@@ -63,4 +63,4 @@ interface = gr.Interface(
|
|
63 |
description="Convert spoken words into a different voice"
|
64 |
)
|
65 |
|
66 |
-
interface.launch()
|
|
|
55 |
interface = gr.Interface(
|
56 |
fn=convert_audio,
|
57 |
inputs=[
|
58 |
+
gr.Audio(type="filepath"), # Removed 'source="upload"'
|
59 |
gr.Dropdown(VOICE_OPTIONS, value="indian_f_1", label="Select voice:", type="value")
|
60 |
],
|
61 |
outputs=gr.Audio(label="streaming audio:", streaming=True, autoplay=True),
|
|
|
63 |
description="Convert spoken words into a different voice"
|
64 |
)
|
65 |
|
66 |
+
interface.launch()
|