Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def initialize_llmchain(llm_model, temperature, max_tokens, top_k, vector_db, pr
|
|
62 |
progress(0.1, desc="Initializing HF tokenizer...")
|
63 |
|
64 |
# Retrieve the Hugging Face token from environment variables
|
65 |
-
hf_token = os.environ.get("
|
66 |
if not hf_token:
|
67 |
raise ValueError("Hugging Face token not found. Please set the HF_TOKEN environment variable.")
|
68 |
|
|
|
62 |
progress(0.1, desc="Initializing HF tokenizer...")
|
63 |
|
64 |
# Retrieve the Hugging Face token from environment variables
|
65 |
+
hf_token = os.environ.get("HUGGINGFACEHUB_API_TOKEN")
|
66 |
if not hf_token:
|
67 |
raise ValueError("Hugging Face token not found. Please set the HF_TOKEN environment variable.")
|
68 |
|