Spaces:
Runtime error
Runtime error
Update worker_runpod.py
Browse files- worker_runpod.py +2 -1
worker_runpod.py
CHANGED
@@ -191,11 +191,12 @@ def generate(input):
|
|
191 |
samples.clamp_(0.0, 1.0)
|
192 |
|
193 |
img = to_pil_image(samples[0].float())
|
|
|
194 |
|
195 |
except Exception:
|
196 |
print(traceback.format_exc())
|
197 |
|
198 |
-
result =
|
199 |
response = None
|
200 |
try:
|
201 |
source_id = values['source_id']
|
|
|
191 |
samples.clamp_(0.0, 1.0)
|
192 |
|
193 |
img = to_pil_image(samples[0].float())
|
194 |
+
img.save("/content/out.png")
|
195 |
|
196 |
except Exception:
|
197 |
print(traceback.format_exc())
|
198 |
|
199 |
+
result = "/content/out.png"
|
200 |
response = None
|
201 |
try:
|
202 |
source_id = values['source_id']
|