Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,8 +71,8 @@ def infer(
|
|
| 71 |
if randomize_seed:
|
| 72 |
seed = random.randint(0, MAX_SEED)
|
| 73 |
|
| 74 |
-
width = min(width, MAX_IMAGE_SIZE
|
| 75 |
-
height = min(height, MAX_IMAGE_SIZE
|
| 76 |
height, width = adjust_dimensions(height, width)
|
| 77 |
|
| 78 |
generator = torch.Generator().manual_seed(seed)
|
|
|
|
| 71 |
if randomize_seed:
|
| 72 |
seed = random.randint(0, MAX_SEED)
|
| 73 |
|
| 74 |
+
width = min(width, MAX_IMAGE_SIZE )
|
| 75 |
+
height = min(height, MAX_IMAGE_SIZE )
|
| 76 |
height, width = adjust_dimensions(height, width)
|
| 77 |
|
| 78 |
generator = torch.Generator().manual_seed(seed)
|