alfredplpl commited on
Commit
50dd30b
1 Parent(s): 44beeea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -21,7 +21,9 @@ def inference(prompt, guidance, steps, image_size="Landscape", seed=0, img=None,
21
 
22
  print(data)
23
 
24
- return
 
 
25
 
26
  css = """.main-div div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.main-div div h1{font-weight:900;margin-bottom:7px}.main-div p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:0;margin-bottom:0}#gallery{min-height:20rem}
27
  """
 
21
 
22
  print(data)
23
 
24
+ image=Image.open(BytesIO(base64.b64decode(data[0])))
25
+
26
+ return image,data[1],data[2]
27
 
28
  css = """.main-div div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.main-div div h1{font-weight:900;margin-bottom:7px}.main-div p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:0;margin-bottom:0}#gallery{min-height:20rem}
29
  """