vhr1007 commited on
Commit
5a9ffc6
1 Parent(s): b5e0780

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -23,13 +23,13 @@ if not os.path.exists(cache_dir):
23
  # Setup logging
24
  logging.basicConfig(level=logging.INFO)
25
  # Load Hugging Face token from environment variable
26
- huggingface_token = os.getenv('HUGGINGFACE_HUB_TOKEN')
27
 
28
 
29
- if huggingface_token:
30
- login(token=huggingface_token, add_to_git_credential=True)
31
- else:
32
- raise ValueError("Hugging Face token is not set. Please set the HUGGINGFACE_HUB_TOKEN environment variable.")
33
 
34
 
35
  # Initialize the Qdrant searcher
 
23
  # Setup logging
24
  logging.basicConfig(level=logging.INFO)
25
  # Load Hugging Face token from environment variable
26
+ # huggingface_token = os.getenv('HUGGINGFACE_HUB_TOKEN')
27
 
28
 
29
+ # if huggingface_token:
30
+ # login(token=huggingface_token, add_to_git_credential=True)
31
+ # else:
32
+ # raise ValueError("Hugging Face token is not set. Please set the HUGGINGFACE_HUB_TOKEN environment variable.")
33
 
34
 
35
  # Initialize the Qdrant searcher