Fix ruff lint

This commit is contained in:
Aarni Koskela 2023-05-19 12:37:34 +03:00
parent 330f14d27a
commit 2725dfd8a6

View File

@ -76,7 +76,7 @@ def api_loras(_: gr.Blocks, app: FastAPI):
@app.get("/sdapi/v1/loras")
async def get_loras():
return [create_lora_json(obj) for obj in lora.available_loras.values()]
@app.post("/sdapi/v1/refresh-loras")
async def refresh_loras():
return lora.list_available_loras()