randomtable commited on
Commit
785d439
·
verified ·
1 Parent(s): 5b175ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 >= 5000 or height >= 5000:
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():