Ivan Felipe Rodriguez commited on
Commit
103a92c
·
1 Parent(s): 5636b5c

fixing snapshot model download

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. inference.py +1 -1
app.py CHANGED
@@ -215,7 +215,7 @@ with gr.Blocks(title='Shark Patrol',theme=gr.themes.Soft(),live=True,) as demo:
215
  paths = sorted(pathlib.Path('videos_example/').rglob('*.mp4'))
216
  example_images = gr.Dataset(components=[video_input],
217
  samples=[[path.as_posix()]
218
- for path in paths if 'videos_side_by_side' not in str(path)])
219
 
220
  video_button.click(analyze_video_parallel, inputs=video_input, outputs=video_output)
221
 
 
215
  paths = sorted(pathlib.Path('videos_example/').rglob('*.mp4'))
216
  example_images = gr.Dataset(components=[video_input],
217
  samples=[[path.as_posix()]
218
+ for path in paths if 'raw_videos' not in str(path)])
219
 
220
  video_button.click(analyze_video_parallel, inputs=video_input, outputs=video_output)
221
 
inference.py CHANGED
@@ -80,7 +80,7 @@ classes= ['Beach',
80
  REPO_ID = "SharkSpace/maskformer_model"
81
  FILENAME = "mask2former"
82
 
83
- # snapshot_download(repo_id=REPO_ID, token= os.environ.get('SHARK_MODEL'),local_dir='model/')
84
 
85
 
86
 
 
80
  REPO_ID = "SharkSpace/maskformer_model"
81
  FILENAME = "mask2former"
82
 
83
+ snapshot_download(repo_id=REPO_ID, token= os.environ.get('SHARK_MODEL'),local_dir='model/')
84
 
85
 
86