Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def detect_and_crop_table(image):
|
|
| 125 |
# image = fig2img(fig)
|
| 126 |
|
| 127 |
# crop first detected table out of image
|
| 128 |
-
cropped_table = image.crop(
|
| 129 |
|
| 130 |
return cropped_table
|
| 131 |
|
|
|
|
| 125 |
# image = fig2img(fig)
|
| 126 |
|
| 127 |
# crop first detected table out of image
|
| 128 |
+
cropped_table = image.crop(detected_tables[0]["bbox"])
|
| 129 |
|
| 130 |
return cropped_table
|
| 131 |
|