Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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)
|