lalashechka commited on
Commit
314e1cb
1 Parent(s): 513f142

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -54,6 +54,7 @@ def flip_text(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed):
54
  conn.recv()
55
  conn.recv()
56
  a = conn.recv()
 
57
  photo = json.loads(a)['output']['data'][0]
58
  photo = photo.replace('data:image/jpeg;base64,', '').replace('data:image/png;base64,', '')
59
  photo = Image.open(io.BytesIO(base64.decodebytes(bytes(photo, "utf-8"))))
@@ -69,6 +70,7 @@ def flip_text(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed):
69
  conn.recv()
70
  conn.recv()
71
  a = conn.recv()
 
72
  photo = json.loads(a)['output']['data'][0]
73
  photo = photo.replace('data:image/jpeg;base64,', '').replace('data:image/png;base64,', '')
74
  photo = Image.open(io.BytesIO(base64.decodebytes(bytes(photo, "utf-8"))))
 
54
  conn.recv()
55
  conn.recv()
56
  a = conn.recv()
57
+ print(">> A:", a)
58
  photo = json.loads(a)['output']['data'][0]
59
  photo = photo.replace('data:image/jpeg;base64,', '').replace('data:image/png;base64,', '')
60
  photo = Image.open(io.BytesIO(base64.decodebytes(bytes(photo, "utf-8"))))
 
70
  conn.recv()
71
  conn.recv()
72
  a = conn.recv()
73
+ print(">> A:", a)
74
  photo = json.loads(a)['output']['data'][0]
75
  photo = photo.replace('data:image/jpeg;base64,', '').replace('data:image/png;base64,', '')
76
  photo = Image.open(io.BytesIO(base64.decodebytes(bytes(photo, "utf-8"))))