nielsr HF staff commited on
Commit
35723bb
1 Parent(s): 4e66f95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(objects[0]["bbox"])
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