fffiloni commited on
Commit
fc17a11
1 Parent(s): 3e3cd82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -292,8 +292,9 @@ def get_mask_sam_process(
292
  # Assuming available_frames_to_check.value is a list
293
  if working_frame not in available_frames_to_check:
294
  available_frames_to_check.append(working_frame)
 
295
 
296
- return "output_first_frame.jpg", frame_names, inference_state, gr.update(choices=available_frames_to_check.value, value=working_frame, visible=True)
297
 
298
  def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_names, video_frames_dir, vis_frame_type, progress=gr.Progress(track_tqdm=True)):
299
  #### PROPAGATION ####
 
292
  # Assuming available_frames_to_check.value is a list
293
  if working_frame not in available_frames_to_check:
294
  available_frames_to_check.append(working_frame)
295
+ print(available_frames_to_check)
296
 
297
+ return "output_first_frame.jpg", frame_names, inference_state, gr.update(choices=available_frames_to_check, value=working_frame, visible=True)
298
 
299
  def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_names, video_frames_dir, vis_frame_type, progress=gr.Progress(track_tqdm=True)):
300
  #### PROPAGATION ####