EC2 Default User commited on
Commit
7235802
·
1 Parent(s): 28fa0f6

fix to_json bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -195,7 +195,7 @@ def visualize_cells(image, table_structures, cells):
195
  draw.text((x1, y1), text, (0,0,255), font=fontStyle)
196
 
197
  df = pd.DataFrame(data_rows[1:], columns=data_rows[0])
198
- return image, df, df.to_json()
199
 
200
 
201
  def ocr(image):
 
195
  draw.text((x1, y1), text, (0,0,255), font=fontStyle)
196
 
197
  df = pd.DataFrame(data_rows[1:], columns=data_rows[0])
198
+ return image, df, df.to_json(orient='records')
199
 
200
 
201
  def ocr(image):