Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from langchain_huggingface import HuggingFaceEndpoint
|
|
4 |
import os
|
5 |
|
6 |
# Set up Hugging Face API token and model endpoint
|
7 |
-
HF_TOKEN = os.getenv("
|
8 |
llm = HuggingFaceEndpoint(
|
9 |
repo_id="mistralai/Mistral-7B-Instruct-v0.3",
|
10 |
huggingfacehub_api_token=HF_TOKEN.strip(),
|
|
|
4 |
import os
|
5 |
|
6 |
# Set up Hugging Face API token and model endpoint
|
7 |
+
HF_TOKEN = os.getenv("HF_TOKEN") # Ensure you have your token set in your environment
|
8 |
llm = HuggingFaceEndpoint(
|
9 |
repo_id="mistralai/Mistral-7B-Instruct-v0.3",
|
10 |
huggingfacehub_api_token=HF_TOKEN.strip(),
|