ZachisGit commited on
Commit
6a32ff3
1 Parent(s): bfa5b95

Changed input image max size from 5000x5000 to 8000x8000 pixels

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def inference(image, size):
20
  raise gr.Error("Image not uploaded")
21
 
22
  width, height = image.size
23
- if width >= 5000 or height >= 5000:
24
  raise gr.Error("The image is too large.")
25
 
26
  if torch.cuda.is_available():
 
20
  raise gr.Error("Image not uploaded")
21
 
22
  width, height = image.size
23
+ if width >= 8000 or height >= 8000:
24
  raise gr.Error("The image is too large.")
25
 
26
  if torch.cuda.is_available():