Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix(app): limitation on spaces
Browse files
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
|
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():
|