mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
formatting
This commit is contained in:
parent
328f160e88
commit
4029972530
@ -501,6 +501,7 @@ async def install_model(
|
|||||||
raise HTTPException(status_code=409, detail=str(e))
|
raise HTTPException(status_code=409, detail=str(e))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
@model_manager_router.get(
|
@model_manager_router.get(
|
||||||
"/install/huggingface",
|
"/install/huggingface",
|
||||||
operation_id="install_hugging_face_model",
|
operation_id="install_hugging_face_model",
|
||||||
@ -510,7 +511,7 @@ async def install_model(
|
|||||||
409: {"description": "There is already a model corresponding to this path or repo_id"},
|
409: {"description": "There is already a model corresponding to this path or repo_id"},
|
||||||
},
|
},
|
||||||
status_code=201,
|
status_code=201,
|
||||||
response_class=HTMLResponse
|
response_class=HTMLResponse,
|
||||||
)
|
)
|
||||||
async def install_hugging_face_model(
|
async def install_hugging_face_model(
|
||||||
source: str = Query(description="Hugging Face repo_id to install"),
|
source: str = Query(description="Hugging Face repo_id to install"),
|
||||||
|
Loading…
Reference in New Issue
Block a user