clementruhm commited on
Commit
ce55168
1 Parent(s): f4fe081

app.py: remove extra global declaration

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def main():
74
  if model_name_str in model_to_speakers:
75
  speakers = model_to_speakers[model_name_str]
76
  else:
77
- global tts, cur_model_path, model_to_speakers, locker
78
  with locker:
79
  # need to load this model to learn the list of speakers
80
  model_path = os.path.join(model_repo_dir, model_name_str)
 
74
  if model_name_str in model_to_speakers:
75
  speakers = model_to_speakers[model_name_str]
76
  else:
77
+ global tts, cur_model_path, locker
78
  with locker:
79
  # need to load this model to learn the list of speakers
80
  model_path = os.path.join(model_repo_dir, model_name_str)