Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,6 @@ from tempfile import NamedTemporaryFile
|
|
4 |
from langchain.document_loaders import PyPDFLoader
|
5 |
from langchain.embeddings import HuggingFaceEmbeddings
|
6 |
from langchain.vectorstores import Chroma
|
7 |
-
from langchain.llms import GPT4All
|
8 |
-
from langchain.chains.question_answering import load_qa_chain
|
9 |
-
from langchain import PromptTemplate, LLMChain
|
10 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
11 |
|
12 |
# Function to save the uploaded PDF to a temporary file
|
|
|
4 |
from langchain.document_loaders import PyPDFLoader
|
5 |
from langchain.embeddings import HuggingFaceEmbeddings
|
6 |
from langchain.vectorstores import Chroma
|
|
|
|
|
|
|
7 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
8 |
|
9 |
# Function to save the uploaded PDF to a temporary file
|