Spaces:
Runtime error
Runtime error
Iwaku-Real
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
|
|
95 |
return job["imageUrl"]
|
96 |
|
97 |
def check_res(w, h):
|
98 |
-
if w*h
|
99 |
return "### ⚠️ Res too big!"
|
100 |
else:
|
101 |
return ""
|
|
|
95 |
return job["imageUrl"]
|
96 |
|
97 |
def check_res(w, h):
|
98 |
+
if w*h > 1_100_000:
|
99 |
return "### ⚠️ Res too big!"
|
100 |
else:
|
101 |
return ""
|