SkalskiP commited on
Commit
6057bcc
·
1 Parent(s): 41975a2

add progress; drop example cache

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,7 +100,8 @@ def video_processing_inference(
100
  input_video: str,
101
  confidence: float,
102
  resolution: int,
103
- checkpoint: str
 
104
  ):
105
  model = load_model(resolution=resolution, checkpoint=checkpoint)
106
 
@@ -234,7 +235,6 @@ with gr.Blocks() as demo:
234
  video_processing_checkpoint_dropdown
235
  ],
236
  outputs=video_processing_output_video,
237
- cache_examples=True,
238
  run_on_click=True
239
  )
240
 
 
100
  input_video: str,
101
  confidence: float,
102
  resolution: int,
103
+ checkpoint: str,
104
+ progress=gr.Progress(track_tqdm=True)
105
  ):
106
  model = load_model(resolution=resolution, checkpoint=checkpoint)
107
 
 
235
  video_processing_checkpoint_dropdown
236
  ],
237
  outputs=video_processing_output_video,
 
238
  run_on_click=True
239
  )
240