qq1023 commited on
Commit
6a1cb80
·
1 Parent(s): 1694688

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -232,7 +232,10 @@ def process_and_output_files(input_files):
232
  string_item = {key: str(value) for key, value in item.items()}
233
  string_data.append(string_item)
234
 
235
- return pd.DataFrame(string_data)
 
 
 
236
 
237
 
238
 
@@ -329,7 +332,7 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
329
  interactive=False,
330
  height=240,
331
  )
332
- information = gr.JSON(label="Extracted information")
333
 
334
  with gr.Row():
335
  flag_incorrect_button = gr.Button(
 
232
  string_item = {key: str(value) for key, value in item.items()}
233
  string_data.append(string_item)
234
 
235
+ df = pd.DataFrame(string_data)
236
+ table_html = df.to_html(classes="table table-bordered", index=False)
237
+
238
+ return table_html
239
 
240
 
241
 
 
332
  interactive=False,
333
  height=240,
334
  )
335
+ information = gr.HTML()
336
 
337
  with gr.Row():
338
  flag_incorrect_button = gr.Button(