Spaces:
Running
Running
app.py
CHANGED
@@ -163,10 +163,11 @@ def sample_ddim(n_sample, n=20):
|
|
163 |
|
164 |
def greet(input):
|
165 |
samples, intermediate = sample_ddim(32, n=25)
|
166 |
-
transform2 = transforms.ToPILImage()
|
167 |
response = transform2(transform(intermediate[-1][-1]))
|
168 |
return response
|
169 |
|
|
|
|
|
170 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
171 |
#iface.launch()
|
172 |
|
|
|
163 |
|
164 |
def greet(input):
|
165 |
samples, intermediate = sample_ddim(32, n=25)
|
|
|
166 |
response = transform2(transform(intermediate[-1][-1]))
|
167 |
return response
|
168 |
|
169 |
+
transform2 = transforms.ToPILImage()
|
170 |
+
|
171 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
172 |
#iface.launch()
|
173 |
|