salso commited on
Commit
1f823d6
·
verified ·
1 Parent(s): 41a21ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def process_image_and_text(subject_image, adapter_dict, prompt, _unused1, _unuse
76
  # Extract base64 image from 'blended' key
77
  if "blended" in data:
78
  try:
79
- blended_bytes = base64.b64decode(data["blended"])
80
  raw_img = Image.open(BytesIO(blended_bytes)).convert("RGB")
81
  return raw_img, raw_img
82
  except Exception:
 
76
  # Extract base64 image from 'blended' key
77
  if "blended" in data:
78
  try:
79
+ blended_bytes = base64.b64decode(data["raw_result"])
80
  raw_img = Image.open(BytesIO(blended_bytes)).convert("RGB")
81
  return raw_img, raw_img
82
  except Exception: