Spaces:
Runtime error
Runtime error
changed image path
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def parse_ticket_image(image, question):
|
|
| 42 |
# Processing the image
|
| 43 |
if image:
|
| 44 |
try:
|
| 45 |
-
document = Image.open(image
|
| 46 |
except Exception as e:
|
| 47 |
traceback.print_exc()
|
| 48 |
error = str(e)
|
|
|
|
| 42 |
# Processing the image
|
| 43 |
if image:
|
| 44 |
try:
|
| 45 |
+
document = Image.open(image).convert("RGB")
|
| 46 |
except Exception as e:
|
| 47 |
traceback.print_exc()
|
| 48 |
error = str(e)
|