fffiloni commited on
Commit
894fa57
1 Parent(s): 3605db0

Update minigpt4_video_demo.py

Browse files
Files changed (1) hide show
  1. minigpt4_video_demo.py +4 -0
minigpt4_video_demo.py CHANGED
@@ -21,6 +21,10 @@ from huggingface_hub import login, hf_hub_download
21
  hf_token = os.environ.get('HF_TKN')
22
  login(token=hf_token)
23
 
 
 
 
 
24
  hf_hub_download(
25
  repo_id='Vision-CAIR/MiniGPT4-Video',
26
  subfolder='checkpoints',
 
21
  hf_token = os.environ.get('HF_TKN')
22
  login(token=hf_token)
23
 
24
+ folder_name = "checkpoints"
25
+ if not os.path.exists(folder_name):
26
+ os.makedirs(folder_name)
27
+
28
  hf_hub_download(
29
  repo_id='Vision-CAIR/MiniGPT4-Video',
30
  subfolder='checkpoints',