qq1023 commited on
Commit
0581b3c
1 Parent(s): cc0d004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -235,6 +235,7 @@ def process_and_output_files(input_files):
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
 
@@ -335,7 +336,7 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
335
 
336
  information = gr.HTML(
337
  label="Extracted information",
338
- content=f'<div style="overflow-x: auto;">{table_html}</div>'
339
  )
340
 
341
 
@@ -372,7 +373,7 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
372
  ).then(
373
  process_and_output_files,
374
  [input_file],
375
- [table_html],
376
  ).then(
377
  flag_if_shared(flag_method),
378
  [
 
235
  df = pd.DataFrame(string_data)
236
  table_html = df.to_html(classes="table table-bordered", index=False)
237
 
238
+
239
  return table_html
240
 
241
 
 
336
 
337
  information = gr.HTML(
338
  label="Extracted information",
339
+ content=f'<div style="overflow-x: auto;"></div>'
340
  )
341
 
342
 
 
373
  ).then(
374
  process_and_output_files,
375
  [input_file],
376
+ [information],
377
  ).then(
378
  flag_if_shared(flag_method),
379
  [