Skip to content

Commit

Permalink
Better readable model types list
Browse files Browse the repository at this point in the history
  • Loading branch information
ImDarkTom committed Sep 9, 2024
1 parent 40ddbba commit e367c43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def get_embeddings(self):

@routes.get("/models")
def list_model_types(request):
return web.json_response(list(folder_paths.folder_names_and_paths))
model_types = list(folder_paths.folder_names_and_paths.keys())

return web.json_response(model_types)

@routes.get("/models/{folder}")
async def get_models(request):
Expand Down

0 comments on commit e367c43

Please sign in to comment.