Pijush2023 commited on
Commit
c7377a5
·
verified ·
1 Parent(s): d67e469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ from langchain.agents import Tool, initialize_agent
21
  from huggingface_hub import login
22
 
23
  # Check if the token is already set in the environment variables
24
- hf_token = os.environ(["HF_TOKEN"])
25
 
26
  if hf_token is None:
27
  # If the token is not set, prompt for it (this should be done securely)
 
21
  from huggingface_hub import login
22
 
23
  # Check if the token is already set in the environment variables
24
+ hf_token = os.getenv("HF_TOKEN")
25
 
26
  if hf_token is None:
27
  # If the token is not set, prompt for it (this should be done securely)