JaMe76 sladomic commited on
Commit
c2a4109
1 Parent(s): 49116ab

Output all tables (#4)

Browse files

- Output all tables (40fe09a2fbbb8b4ec1573864c28994129156900e)


Co-authored-by: Michael Sladoje <sladomic@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ def prepare_output(dp, add_table, add_ocr):
153
  if add_table:
154
  html_list = [table.html for table in dp.tables]
155
  if html_list:
156
- html = html_list[0]
157
  else:
158
  html = None
159
  else:
 
153
  if add_table:
154
  html_list = [table.html for table in dp.tables]
155
  if html_list:
156
+ html = ("\n").join(html_list)
157
  else:
158
  html = None
159
  else: