Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,14 @@ import urllib.request
|
|
4 |
from pydub import AudioSegment
|
5 |
|
6 |
def function1(prompt):
|
|
|
|
|
|
|
|
|
|
|
7 |
response = requests.post("https://matthijs-speecht5-tts-demo.hf.space/run/predict", json={
|
8 |
"data": [
|
9 |
-
|
10 |
"KSP (male)",
|
11 |
]
|
12 |
}).json()
|
|
|
4 |
from pydub import AudioSegment
|
5 |
|
6 |
def function1(prompt):
|
7 |
+
response = requests.post("https://tommy24-testing3.hf.space/run/predict", json={
|
8 |
+
"data": [
|
9 |
+
prompt,
|
10 |
+
]}).json()
|
11 |
+
data = response["data"][0]
|
12 |
response = requests.post("https://matthijs-speecht5-tts-demo.hf.space/run/predict", json={
|
13 |
"data": [
|
14 |
+
data,
|
15 |
"KSP (male)",
|
16 |
]
|
17 |
}).json()
|