Update main.py
Browse files
main.py
CHANGED
@@ -34,9 +34,9 @@ async def extract_table_data(image: UploadFile = File(...)):
|
|
34 |
|
35 |
# Open image in memory
|
36 |
image = Image.open(io.BytesIO(image_data))
|
37 |
-
|
38 |
-
rgb_img.save('output.jpg')
|
39 |
-
image = Image.open('output.jpg')
|
40 |
|
41 |
table_fram= inference(image)
|
42 |
if table_fram.empty:
|
|
|
34 |
|
35 |
# Open image in memory
|
36 |
image = Image.open(io.BytesIO(image_data))
|
37 |
+
image = image.convert("RGB")
|
38 |
+
#rgb_img.save('output.jpg')
|
39 |
+
#image = Image.open('output.jpg')
|
40 |
|
41 |
table_fram= inference(image)
|
42 |
if table_fram.empty:
|