Googlefan commited on
Commit
7438e97
1 Parent(s): 1fa7b92

refactor(app.py): join path components correctly

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def load_and_synthesize(text: str, path: str, sdp: float = 0.0, speed: float = 1
10
  model = TTSModel.from_path(bert, tokenizer)
11
  uid = "default"
12
  path = path.split("/")
13
- filename = path[2:]
14
  repo_id = "/".join(path[:2])
15
  model.load_sbv2file_from_path(uid, hf_hub_download(repo_id, filename))
16
  print("All setup is done!")
 
10
  model = TTSModel.from_path(bert, tokenizer)
11
  uid = "default"
12
  path = path.split("/")
13
+ filename = "/".join(path[2:])
14
  repo_id = "/".join(path[:2])
15
  model.load_sbv2file_from_path(uid, hf_hub_download(repo_id, filename))
16
  print("All setup is done!")