lalashechka commited on
Commit
44e8b2a
1 Parent(s): 0496224

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def flip_text(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed):
68
  photo = Image.open(io.BytesIO(base64.decodebytes(bytes(photo, "utf-8"))))
69
  return photo
70
  try:
71
- with closing(create_connection(f"{url_sd3}")) as conn:
72
  conn.send('{"fn_index":3,"session_hash":""}')
73
  conn.send(f'{{"data":["{prompt}, 4k photo","[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",7.5,"(No style)"],"event_data":null,"fn_index":3,"session_hash":""}}')
74
  c = 0
 
68
  photo = Image.open(io.BytesIO(base64.decodebytes(bytes(photo, "utf-8"))))
69
  return photo
70
  try:
71
+ with closing(create_connection("wss://google-sdxl.hf.space/queue/join")) as conn:
72
  conn.send('{"fn_index":3,"session_hash":""}')
73
  conn.send(f'{{"data":["{prompt}, 4k photo","[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",7.5,"(No style)"],"event_data":null,"fn_index":3,"session_hash":""}}')
74
  c = 0