Merge branch 'dev' into feature/img-gen-steps-setting

This commit is contained in:
Timothy Jaeryang Baek authored and GitHub committed 2024-02-24 21:09:06 -05:00
commit 271e5bf44d
23 files changed
+1132 -755

No files matched your search

+2
View File
@@ -136,6 +136,7 @@ def get_models(user=Depends(get_current_user)):
models = r.json()
return models
except Exception as e:
app.state.ENABLED = False
raise HTTPException(status_code=400, detail=ERROR_MESSAGES.DEFAULT(e))
@@ -147,6 +148,7 @@ async def get_default_model(user=Depends(get_admin_user)):
return {"model": options["sd_model_checkpoint"]}
except Exception as e:
app.state.ENABLED = False
raise HTTPException(status_code=400, detail=ERROR_MESSAGES.DEFAULT(e))