Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
31 |
-
else:
|
32 |
-
|
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
|