adilkh26 commited on
Commit
d2f3cc2
·
verified ·
1 Parent(s): ad6e902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -6,12 +6,7 @@ from huggingface_hub import hf_hub_download
6
  # Model name
7
  model_name = "OpenGVLab/InternVideo2_5_Chat_8B"
8
 
9
- # Set Hugging Face cache directory
10
- import os
11
- os.environ["HF_HOME"] = "/home/user/.cache/huggingface" # Change if needed
12
 
13
- # Increase timeout for downloads
14
- os.environ["HF_HUB_DOWNLOAD_TIMEOUT"] = "300" # 5 minutes
15
 
16
  # Load tokenizer
17
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
 
6
  # Model name
7
  model_name = "OpenGVLab/InternVideo2_5_Chat_8B"
8
 
 
 
 
9
 
 
 
10
 
11
  # Load tokenizer
12
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)