Spaces:
Sleeping
Sleeping
Update pages/machine_learning.py
Browse files
pages/machine_learning.py
CHANGED
|
@@ -4,7 +4,7 @@ from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
|
| 4 |
from langchain_core.messages import HumanMessage, SystemMessage
|
| 5 |
|
| 6 |
# Set Hugging Face tokens
|
| 7 |
-
hf = os.getenv('
|
| 8 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = hf
|
| 9 |
os.environ['HF_TOKEN'] = hf
|
| 10 |
|
|
|
|
| 4 |
from langchain_core.messages import HumanMessage, SystemMessage
|
| 5 |
|
| 6 |
# Set Hugging Face tokens
|
| 7 |
+
hf = os.getenv('HF_TOKEN')
|
| 8 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = hf
|
| 9 |
os.environ['HF_TOKEN'] = hf
|
| 10 |
|