Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ class DocumentRetrievalAndGeneration:
|
|
86 |
bnb_4bit_quant_type="nf4",
|
87 |
bnb_4bit_compute_dtype=torch.bfloat16
|
88 |
)
|
89 |
-
hf_token =
|
90 |
print(f"Token found: {hf_token is not None}")
|
91 |
print(f"LLM Token found: {hf_token is not None}")
|
92 |
print(f"Token starts with: {hf_token[:10] if hf_token else 'None'}...")
|
|
|
86 |
bnb_4bit_quant_type="nf4",
|
87 |
bnb_4bit_compute_dtype=torch.bfloat16
|
88 |
)
|
89 |
+
hf_token = os.getenv('HF_TOKEN')
|
90 |
print(f"Token found: {hf_token is not None}")
|
91 |
print(f"LLM Token found: {hf_token is not None}")
|
92 |
print(f"Token starts with: {hf_token[:10] if hf_token else 'None'}...")
|