Spaces:
Runtime error
Runtime error
Commit
·
6d38b30
1
Parent(s):
a7bed20
update
Browse files
app.py
CHANGED
|
@@ -187,10 +187,10 @@ def generate(
|
|
| 187 |
|
| 188 |
model.to(device)
|
| 189 |
if device == "cuda":
|
| 190 |
-
return run(model, input_image, input_image_copy, width, height)
|
| 191 |
-
else:
|
| 192 |
with torch.no_grad(), autocast("cuda"), model.ema_scope():
|
| 193 |
return run(model, input_image, input_image_copy, width, height)
|
|
|
|
|
|
|
| 194 |
|
| 195 |
|
| 196 |
def run(model, input_image, input_image_copy, width, height):
|
|
|
|
| 187 |
|
| 188 |
model.to(device)
|
| 189 |
if device == "cuda":
|
|
|
|
|
|
|
| 190 |
with torch.no_grad(), autocast("cuda"), model.ema_scope():
|
| 191 |
return run(model, input_image, input_image_copy, width, height)
|
| 192 |
+
else:
|
| 193 |
+
return run(model, input_image, input_image_copy, width, height)
|
| 194 |
|
| 195 |
|
| 196 |
def run(model, input_image, input_image_copy, width, height):
|