Update app.py
Browse files
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():
|