mbarnig commited on
Commit
302628d
·
verified ·
1 Parent(s): 3c39e0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -28,6 +28,7 @@ def init():
28
 
29
  def new_load_mod(instr="en_US-joe-medium"):
30
  model=instr
 
31
  lang=instr.split("_")[0]
32
  dia=instr.split("-")[0]
33
  name=instr.split("-")[1]
@@ -38,6 +39,7 @@ def new_load_mod(instr="en_US-joe-medium"):
38
  if not os.path.isfile(f'{os.getcwd()}/voices/{file}'):
39
  print(f"Model not found locally")
40
  m_path= f"https://huggingface.co/rhasspy/piper-voices/resolve/main/{lang}/{dia}/{name}/{style}/{file}"
 
41
  print("Downloading json...")
42
  json_file=requests.get(f"{m_path}.json")
43
  print("Downloading model...")
 
28
 
29
  def new_load_mod(instr="en_US-joe-medium"):
30
  model=instr
31
+ print(f"model: {model}")
32
  lang=instr.split("_")[0]
33
  dia=instr.split("-")[0]
34
  name=instr.split("-")[1]
 
39
  if not os.path.isfile(f'{os.getcwd()}/voices/{file}'):
40
  print(f"Model not found locally")
41
  m_path= f"https://huggingface.co/rhasspy/piper-voices/resolve/main/{lang}/{dia}/{name}/{style}/{file}"
42
+ print(f"m_path: {m_path}")
43
  print("Downloading json...")
44
  json_file=requests.get(f"{m_path}.json")
45
  print("Downloading model...")