nielsr HF staff commited on
Commit
8dd7ef6
1 Parent(s): a9f7f5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -193,7 +193,7 @@ def get_cell_coordinates_by_row(table_data):
193
  return cell_coordinates
194
 
195
 
196
- def apply_ocr(cell_coordinates):
197
  # let's OCR row by row
198
  data = dict()
199
  max_num_columns = 0
@@ -230,7 +230,7 @@ def process_pdf(image):
230
 
231
  cell_coordinates = get_cell_coordinates_by_row(cells)
232
 
233
- data = apply_ocr(cell_coordinates)
234
 
235
  return image, data
236
 
 
193
  return cell_coordinates
194
 
195
 
196
+ def apply_ocr(cell_coordinates, cropped_table):
197
  # let's OCR row by row
198
  data = dict()
199
  max_num_columns = 0
 
230
 
231
  cell_coordinates = get_cell_coordinates_by_row(cells)
232
 
233
+ data = apply_ocr(cell_coordinates, image)
234
 
235
  return image, data
236