randomtable
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def inference(image, size):
|
|
21 |
raise gr.Error("Image not uploaded")
|
22 |
|
23 |
width, height = image.size
|
24 |
-
if width >=
|
25 |
raise gr.Error("The image is too large.")
|
26 |
|
27 |
if torch.cuda.is_available():
|
|
|
21 |
raise gr.Error("Image not uploaded")
|
22 |
|
23 |
width, height = image.size
|
24 |
+
if width >= 20000 or height >= 20000:
|
25 |
raise gr.Error("The image is too large.")
|
26 |
|
27 |
if torch.cuda.is_available():
|