Abijith commited on
Commit
9725a34
·
verified ·
1 Parent(s): ddd4259

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,7 +18,8 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
18
  from langchain.llms.huggingface_pipeline import HuggingFacePipeline
19
  from huggingface_hub import login
20
 
21
- hf_token = os.getenv(HF_API_TOKEN)
 
22
  # Log in with your token (optional if already logged in via CLI)
23
  login(token=hf_token)
24
 
 
18
  from langchain.llms.huggingface_pipeline import HuggingFacePipeline
19
  from huggingface_hub import login
20
 
21
+ hf_token = os.environ.get("HF_TOKEN")
22
+ print("-- hftoken1,",hf_token)
23
  # Log in with your token (optional if already logged in via CLI)
24
  login(token=hf_token)
25