debisoft commited on
Commit
323dcf6
·
1 Parent(s): 33463d3
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -163,7 +163,7 @@ def sample_ddim(n_sample, n=20):
163
 
164
  def greet(input):
165
  samples, intermediate = sample_ddim(32, n=25)
166
- response = im.fromarray(samples.detach().cpu().numpy()[0][0]).convert("RGB")
167
  return response
168
 
169
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
163
 
164
  def greet(input):
165
  samples, intermediate = sample_ddim(32, n=25)
166
+ response = im.fromarray(norm_torch(samples)).convert("RGB")
167
  return response
168
 
169
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")