tommy24 commited on
Commit
a3b46f7
·
1 Parent(s): 83da328

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def function1(prompt):
13
  data = response["data"][0]["name"]
14
  data = "https://matthijs-speecht5-tts-demo.hf.space/file="+data
15
  speech = urllib.request.urlretrieve(data, "speech.wav")
16
- return speech
17
 
18
  iface = gr.Interface(fn=function1, inputs="text", outputs=[gr.Audio(label="Audio",type="numpy")])
19
  iface.launch()
 
13
  data = response["data"][0]["name"]
14
  data = "https://matthijs-speecht5-tts-demo.hf.space/file="+data
15
  speech = urllib.request.urlretrieve(data, "speech.wav")
16
+ return data
17
 
18
  iface = gr.Interface(fn=function1, inputs="text", outputs=[gr.Audio(label="Audio",type="numpy")])
19
  iface.launch()