Shanuka01 commited on
Commit
578dc3b
1 Parent(s): 7125172

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(source="upload", type="filepath"),
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()