We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a0cee0 commit 5d211b2Copy full SHA for 5d211b2
src/rest/rest.py
@@ -217,8 +217,8 @@ def _register_routes(self):
217
218
async def get_available_models(self):
219
try:
220
- gpts = ["default"].extend(list_train_gpts().keys())
221
- sovits = ["default"].extend(list_train_sovits().keys())
+ gpts = ["default"] + list(list_train_gpts().keys())
+ sovits = ["default"] + list(list_train_sovits().keys())
222
return {"gpts": gpts, "sovits": sovits}
223
except Exception as e:
224
logger.error(f"failed to get available models: {e}")
0 commit comments