Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -312,8 +312,7 @@ def generate_epiphany():
|
|
| 312 |
image_file = request.files['image']
|
| 313 |
raw_bytes = image_file.read()
|
| 314 |
# THE FIX:
|
| 315 |
-
|
| 316 |
-
pil_image = Image.open(io.BytesIO(image_bytes)).convert('RGB')
|
| 317 |
|
| 318 |
|
| 319 |
try:
|
|
|
|
| 312 |
image_file = request.files['image']
|
| 313 |
raw_bytes = image_file.read()
|
| 314 |
# THE FIX:
|
| 315 |
+
pil_image, scale_size = prepare_vision_image(raw_bytes)
|
|
|
|
| 316 |
|
| 317 |
|
| 318 |
try:
|