Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
|
34 |
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
35 |
from langchain_community.document_loaders import TextLoader
|
36 |
from langchain_text_splitters import CharacterTextSplitter
|
37 |
-
from
|
38 |
|
39 |
# Montez Google Drive
|
40 |
loader = PyPDFLoader("test-1.pdf")
|
@@ -53,7 +53,7 @@ retriever = db.as_retriever(
|
|
53 |
)
|
54 |
|
55 |
|
56 |
-
from
|
57 |
from langchain.prompts import PromptTemplate
|
58 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
59 |
|
|
|
34 |
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
35 |
from langchain_community.document_loaders import TextLoader
|
36 |
from langchain_text_splitters import CharacterTextSplitter
|
37 |
+
from langchain_community.document_loaders import PyPDFLoader
|
38 |
|
39 |
# Montez Google Drive
|
40 |
loader = PyPDFLoader("test-1.pdf")
|
|
|
53 |
)
|
54 |
|
55 |
|
56 |
+
from langchain_community.llms import HuggingFacePipeline
|
57 |
from langchain.prompts import PromptTemplate
|
58 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
59 |
|