Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def process_images(msg: cl.Message):
|
|
18 |
image_bytes = images[0].content # take the first image just for demo purposes
|
19 |
|
20 |
# check the size of the image, max 1mb
|
21 |
-
if len(image_bytes) >
|
22 |
return "too_large"
|
23 |
|
24 |
# we need base64 encoded image
|
|
|
18 |
image_bytes = images[0].content # take the first image just for demo purposes
|
19 |
|
20 |
# check the size of the image, max 1mb
|
21 |
+
if len(image_bytes) > 5000000:
|
22 |
return "too_large"
|
23 |
|
24 |
# we need base64 encoded image
|