Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from langchain.chains import create_retrieval_chain
|
|
6 |
from langchain import HuggingFaceHub
|
7 |
import os
|
8 |
|
9 |
-
os.environ["HUGGINGFACEHUB_API_TOKEN"] = window.huggingface.hf_token
|
10 |
|
11 |
llm = HuggingFaceHub(repo_id="tiiuae/falcon-7b-instruct",
|
12 |
model_kwargs={"max_length": 300, "max_new_tokens": 300})
|
|
|
6 |
from langchain import HuggingFaceHub
|
7 |
import os
|
8 |
|
9 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = window.huggingface.variables.hf_token
|
10 |
|
11 |
llm = HuggingFaceHub(repo_id="tiiuae/falcon-7b-instruct",
|
12 |
model_kwargs={"max_length": 300, "max_new_tokens": 300})
|