phamngoctukts commited on
Commit
de9278c
1 Parent(s): adf8038

Update render.py

Browse files
Files changed (1) hide show
  1. render.py +1 -1
render.py CHANGED
@@ -77,7 +77,7 @@ def generate_images(positive_prompt, image):
77
  ws.connect(ws_url)
78
  data = json.loads(json_data)
79
  data["49"]["inputs"]["text"] = positive_prompt
80
- if image:
81
  data["90"]["inputs"]["images"]["base64"] = [pil_to_base64(image)]
82
  else:
83
  data.pop("90", None)
 
77
  ws.connect(ws_url)
78
  data = json.loads(json_data)
79
  data["49"]["inputs"]["text"] = positive_prompt
80
+ if image:
81
  data["90"]["inputs"]["images"]["base64"] = [pil_to_base64(image)]
82
  else:
83
  data.pop("90", None)