ArkanDash commited on
Commit
6fe5063
1 Parent(s): ca3f4ae

fix(app): limitation on spaces

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