Spaces:
Runtime error
Runtime error
Commit
Β·
892985e
1
Parent(s):
76f2471
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def infer(
|
|
| 35 |
conditioning_image = conditioning_image_raw.convert('L')
|
| 36 |
w = conditioning_image.width
|
| 37 |
h = conditioning_image.height
|
| 38 |
-
ratio = 768 / max(
|
| 39 |
w = int(W * ratio)
|
| 40 |
h = int(H * ratio)
|
| 41 |
g_cpu = torch.Generator()
|
|
|
|
| 35 |
conditioning_image = conditioning_image_raw.convert('L')
|
| 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()
|