arjunanand13 commited on
Commit
92deba4
·
verified ·
1 Parent(s): 1c26a80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "replace_your_token_here"
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'}...")