Update app.py
Browse files
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
|
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()
|