debisoft commited on
Commit
cd87c0b
·
1 Parent(s): eb9ae37
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -163,8 +163,9 @@ def sample_ddim(n_sample, n=20):
163
 
164
  def greet(input):
165
  samples, intermediate = sample_ddim(32, n=25)
166
- response = im.fromarray(intermediate[24][0][1]).convert("RGB")
167
- return response
 
168
 
169
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
170
  #iface.launch()
 
163
 
164
  def greet(input):
165
  samples, intermediate = sample_ddim(32, n=25)
166
+ #response = im.fromarray(intermediate[24][0][1]).convert("RGB")
167
+ response = intermediate[-1][-1][-1]
168
+ return response
169
 
170
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
171
  #iface.launch()