Pavan178 commited on
Commit
056b871
·
verified ·
1 Parent(s): 7ea4acb

Update app.py

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