Skip to content

Commit

Permalink
fixed inpaint api
Browse files Browse the repository at this point in the history
  • Loading branch information
AyaanShah2204 committed Jun 22, 2023
1 parent cdd505e commit 5999538
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/stable_diffusion/web/ui/inpaint_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def inpaint_api(
custom_model="None",
hf_model_id=InputData["hf_model_id"]
if "hf_model_id" in InputData.keys()
else "stabilityai/stable-diffusion-2-1-base",
else "stabilityai/stable-diffusion-2-inpainting",
custom_vae="None",
precision="fp16",
device=available_devices[0],
Expand All @@ -289,6 +289,10 @@ def inpaint_api(
lora_hf_id="",
ondemand=False,
)

# Converts generator type to subscriptable
res = next(res)

return {
"images": encode_pil_to_base64(res[0]),
"parameters": {},
Expand Down

0 comments on commit 5999538

Please sign in to comment.