oskarastrom commited on
Commit
99331d9
·
1 Parent(s): f7827d6

Update result_ui.py

Browse files
Files changed (1) hide show
  1. gradio_scripts/result_ui.py +2 -0
gradio_scripts/result_ui.py CHANGED
@@ -28,6 +28,7 @@ tab_parent = None
28
  zip_out = None
29
 
30
  def update_result(i, state, result, inference_handler):
 
31
  # If index is larger than max_tabs, only add file to zip list
32
  if i >= max_tabs:
33
  return {
@@ -42,6 +43,7 @@ def update_result(i, state, result, inference_handler):
42
  make_pdf(state['index']-1, state, result, table_headers)
43
 
44
  # Send update to UI, and to inference_handler to start next file inference
 
45
  return {
46
  zip_out: gr.update(value=result["path_zip"]),
47
  tabs[i]['tab']: gr.update(),
 
28
  zip_out = None
29
 
30
  def update_result(i, state, result, inference_handler):
31
+ print("loading result")
32
  # If index is larger than max_tabs, only add file to zip list
33
  if i >= max_tabs:
34
  return {
 
43
  make_pdf(state['index']-1, state, result, table_headers)
44
 
45
  # Send update to UI, and to inference_handler to start next file inference
46
+ print("loaded result")
47
  return {
48
  zip_out: gr.update(value=result["path_zip"]),
49
  tabs[i]['tab']: gr.update(),