jhlfrfufyfn commited on
Commit
19b7774
1 Parent(s): fc985f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -42,6 +42,7 @@ def tts(text: str):
42
  if response.status_code != 200:
43
  raise Exception(f"Request to fonemizer failed with status code {response.status_code}")
44
  print(response.content)
 
45
  text = response.text
46
  best_model_path = hf_hub_download(repo_id=REPO_ID, filename="model.pth")
47
  config_path = hf_hub_download(repo_id=REPO_ID, filename="config.json")
 
42
  if response.status_code != 200:
43
  raise Exception(f"Request to fonemizer failed with status code {response.status_code}")
44
  print(response.content)
45
+ print(response.headers.get('Content-Type'))
46
  text = response.text
47
  best_model_path = hf_hub_download(repo_id=REPO_ID, filename="model.pth")
48
  config_path = hf_hub_download(repo_id=REPO_ID, filename="config.json")