Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,13 +24,13 @@ from datasets import load_dataset
|
|
24 |
|
25 |
import transformers
|
26 |
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
27 |
-
|
28 |
from huggingface_hub import login
|
29 |
login(token=st.secrets["HF_TOKEN"])
|
30 |
repo_id = "mistralai/Mistral-7B-Instruct-v0.2"
|
31 |
|
32 |
-
|
33 |
-
repo_id=repo_id, max_length=128, temperature=0.5, token=
|
34 |
)
|
35 |
|
36 |
from langchain_community.document_loaders import TextLoader
|
|
|
24 |
|
25 |
import transformers
|
26 |
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
27 |
+
token=st.secrets["HF_TOKEN"]
|
28 |
from huggingface_hub import login
|
29 |
login(token=st.secrets["HF_TOKEN"])
|
30 |
repo_id = "mistralai/Mistral-7B-Instruct-v0.2"
|
31 |
|
32 |
+
model = HuggingFaceEndpoint(
|
33 |
+
repo_id=repo_id, max_length=128, temperature=0.5, token=token
|
34 |
)
|
35 |
|
36 |
from langchain_community.document_loaders import TextLoader
|