Spaces:
Runtime error
Runtime error
updated
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from InstructorEmbedding import INSTRUCTOR
|
|
14 |
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
15 |
instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
16 |
HUGGINGFACEHUB_API_TOKEN='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'
|
17 |
-
new_vectorstore = FAISS.load_local("./faiss_docs_xl_index",
|
18 |
llm = HuggingFaceHub(repo_id="declare-lab/flan-alpaca-large", model_kwargs={"temperature": 0.1, "max_length": 512},huggingfacehub_api_token= "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")
|
19 |
|
20 |
|
|
|
14 |
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
15 |
instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
16 |
HUGGINGFACEHUB_API_TOKEN='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'
|
17 |
+
new_vectorstore = FAISS.load_local("./faiss_docs_xl_index", instructor_embeddings )
|
18 |
llm = HuggingFaceHub(repo_id="declare-lab/flan-alpaca-large", model_kwargs={"temperature": 0.1, "max_length": 512},huggingfacehub_api_token= "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")
|
19 |
|
20 |
|