Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def function1(prompt):
|
|
19 |
data = response["data"][0]["name"]
|
20 |
data = "https://matthijs-speecht5-tts-demo.hf.space/file="+data
|
21 |
file_name, headers = urllib.request.urlretrieve(data, "speech.mp3")
|
22 |
-
return
|
23 |
|
24 |
iface = gr.Interface(fn=function1, inputs="text", outputs="text")
|
25 |
iface.launch()
|
|
|
19 |
data = response["data"][0]["name"]
|
20 |
data = "https://matthijs-speecht5-tts-demo.hf.space/file="+data
|
21 |
file_name, headers = urllib.request.urlretrieve(data, "speech.mp3")
|
22 |
+
return "speech.mp3"
|
23 |
|
24 |
iface = gr.Interface(fn=function1, inputs="text", outputs="text")
|
25 |
iface.launch()
|