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