formatting

This commit is contained in:
chainchompa 2024-06-14 17:15:55 -04:00
parent 328f160e88
commit 4029972530

View File

@ -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"),