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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.wav")
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")])