jhlfrfufyfn commited on
Commit
b0966fd
1 Parent(s): 99db302

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -39,7 +39,8 @@ def tts(text: str):
39
  headers={'Content-Type': 'text/plain'})
40
  if response.status_code != 200:
41
  raise Exception(f"Request to fonemizer failed with status code {response.status_code}")
42
-
 
43
  best_model_path = hf_hub_download(repo_id=REPO_ID, filename="model.pth")
44
  config_path = hf_hub_download(repo_id=REPO_ID, filename="config.json")
45
  vocoder_path = hf_hub_download(repo_id=REPO_ID, filename="vocoder.pth")
 
39
  headers={'Content-Type': 'text/plain'})
40
  if response.status_code != 200:
41
  raise Exception(f"Request to fonemizer failed with status code {response.status_code}")
42
+
43
+ text = response.text
44
  best_model_path = hf_hub_download(repo_id=REPO_ID, filename="model.pth")
45
  config_path = hf_hub_download(repo_id=REPO_ID, filename="config.json")
46
  vocoder_path = hf_hub_download(repo_id=REPO_ID, filename="vocoder.pth")