Nyashi commited on
Commit
d76a342
·
1 Parent(s): f77cbb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ if __name__ == '__main__':
99
  models = []
100
  tts_voice_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices())
101
  voices = [f"{v['ShortName']}-{v['Gender']}" for v in tts_voice_list]
102
- if limitation:
103
  with open("weights/model_info.json", "r", encoding="utf-8") as f:
104
  models_info = json.load(f)
105
  for name, info in models_info.items():
 
99
  models = []
100
  tts_voice_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices())
101
  voices = [f"{v['ShortName']}-{v['Gender']}" for v in tts_voice_list]
102
+ if not limitation:
103
  with open("weights/model_info.json", "r", encoding="utf-8") as f:
104
  models_info = json.load(f)
105
  for name, info in models_info.items():