mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-01-26 11:19:52 +00:00
Typo: analyse instead of analyze
This commit is contained in:
committed by
GitHub
parent
a690592efc
commit
f559d2d863
@@ -347,8 +347,8 @@ def mount_interrogator_api(_: gr.Blocks, app: FastAPI):
|
||||
prompt = image_to_prompt(img, analysereq.mode, analysereq.clip_model_name)
|
||||
return {"prompt": prompt}
|
||||
|
||||
@app.post("/interrogator/analyze")
|
||||
async def analyze(analysereq: InterrogatorAnalyseRequest):
|
||||
@app.post("/interrogator/analyse")
|
||||
async def analyse(analysereq: InterrogatorAnalyseRequest):
|
||||
image_b64 = analysereq.image
|
||||
if image_b64 is None:
|
||||
raise HTTPException(status_code=404, detail="Image not found")
|
||||
|
||||
Reference in New Issue
Block a user