Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ if os.path.exists(BASE_PATH_MODEL) == False:
|
|
89 |
# --- Download TTS model - VITS Version FH --- #
|
90 |
response = requests.get(URL_TTS_FH, headers=headers)
|
91 |
if response.status_code == 200:
|
92 |
-
with open(os.path.join(BASE_PATH_MODEL, "
|
93 |
f.write(response.content)
|
94 |
else:
|
95 |
st.markdown(f"Failed to download TTS from {URL_TTS_ONNX} (Status code: {response.status_code})")
|
@@ -97,7 +97,7 @@ if os.path.exists(BASE_PATH_MODEL) == False:
|
|
97 |
|
98 |
response = requests.get((URL_TTS_FH + ".json"), headers=headers)
|
99 |
if response.status_code == 200:
|
100 |
-
with open(os.path.join(BASE_PATH_MODEL, "
|
101 |
f.write(response.content)
|
102 |
else:
|
103 |
st.markdown(f"Failed to download TTS json from {URL_TTS_ONNX}.json (Status code: {response.status_code})")
|
|
|
89 |
# --- Download TTS model - VITS Version FH --- #
|
90 |
response = requests.get(URL_TTS_FH, headers=headers)
|
91 |
if response.status_code == 200:
|
92 |
+
with open(os.path.join(BASE_PATH_MODEL, "last_FH.onnx"), 'wb') as f:
|
93 |
f.write(response.content)
|
94 |
else:
|
95 |
st.markdown(f"Failed to download TTS from {URL_TTS_ONNX} (Status code: {response.status_code})")
|
|
|
97 |
|
98 |
response = requests.get((URL_TTS_FH + ".json"), headers=headers)
|
99 |
if response.status_code == 200:
|
100 |
+
with open(os.path.join(BASE_PATH_MODEL, "last_FH.onnx.json"), 'wb') as f:
|
101 |
f.write(response.content)
|
102 |
else:
|
103 |
st.markdown(f"Failed to download TTS json from {URL_TTS_ONNX}.json (Status code: {response.status_code})")
|