JunchuanYu commited on
Commit
ec190aa
1 Parent(s): d0ea10b

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -90,7 +90,7 @@ with gr.Blocks(theme=gr.themes.Soft(),css="footer {visibility: hidden}") as demo
90
  fn=read_img_file,
91
  inputs=[input_img,datatype],
92
  outputs=[fullarray,original_img,original_lab],
93
- cache_examples=False)
94
  ## BATCH MODE
95
  with gr.Tab("Batch"):
96
  with gr.Row(equal_height=True):
@@ -142,7 +142,7 @@ with gr.Blocks(theme=gr.themes.Soft(),css="footer {visibility: hidden}") as demo
142
  fn=batch_check_file,
143
  inputs=[binput_img,bdatatype,boutpath],
144
  outputs=[bresult],
145
- cache_examples=False)
146
 
147
  input_img.change(read_img_file,[input_img,datatype],[fullarray,original_img,original_lab])
148
  check_button.click(check_file,[fullarray,outpath],result)
 
90
  fn=read_img_file,
91
  inputs=[input_img,datatype],
92
  outputs=[fullarray,original_img,original_lab],
93
+ cache_examples=True)
94
  ## BATCH MODE
95
  with gr.Tab("Batch"):
96
  with gr.Row(equal_height=True):
 
142
  fn=batch_check_file,
143
  inputs=[binput_img,bdatatype,boutpath],
144
  outputs=[bresult],
145
+ cache_examples=True)
146
 
147
  input_img.change(read_img_file,[input_img,datatype],[fullarray,original_img,original_lab])
148
  check_button.click(check_file,[fullarray,outpath],result)