alfredplpl commited on
Commit
a69ff66
1 Parent(s): cbca74f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -111,8 +111,9 @@ def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator):
111
  height = height,
112
  generator = generator
113
  )
 
114
 
115
- return result.images[0]
116
 
117
  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}
118
  """
 
111
  height = height,
112
  generator = generator
113
  )
114
+ image=result.images[0].to("cpu")
115
 
116
+ return image
117
 
118
  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}
119
  """