Spaces:
Runtime error
Runtime error
Commit
Β·
a10a711
1
Parent(s):
892985e
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,8 +36,8 @@ def infer(
|
|
| 36 |
w = conditioning_image.width
|
| 37 |
h = conditioning_image.height
|
| 38 |
ratio = 768 / max(w, h)
|
| 39 |
-
w = int(
|
| 40 |
-
h = int(
|
| 41 |
g_cpu = torch.Generator()
|
| 42 |
|
| 43 |
if seed == -1:
|
|
|
|
| 36 |
w = conditioning_image.width
|
| 37 |
h = conditioning_image.height
|
| 38 |
ratio = 768 / max(w, h)
|
| 39 |
+
w = int(w * ratio)
|
| 40 |
+
h = int(h * ratio)
|
| 41 |
g_cpu = torch.Generator()
|
| 42 |
|
| 43 |
if seed == -1:
|