Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,17 +6,15 @@ from PyPDF2 import PdfReader
|
|
6 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
7 |
from langchain_community.embeddings.huggingface import HuggingFaceEmbeddings
|
8 |
from langchain.vectorstores import chroma
|
9 |
-
from langchain.chains.retrieval_qa.base import RetrievalQA
|
10 |
from langchain.chains.question_answering import load_qa_chain
|
11 |
from langchain_community.llms import huggingface_hub
|
12 |
from langchain.document_loaders.pdf import PyMuPDFLoader
|
13 |
#from transformers import AutoTokenizer, AutoModelForCausalLM
|
14 |
-
import torch
|
15 |
-
|
16 |
#from langchain.llms import huggingface_endpoint
|
17 |
-
import os
|
18 |
-
import fitz
|
19 |
-
import tempfile
|
20 |
|
21 |
img = Image.open('image/nexio_logo1.png')
|
22 |
st.set_page_config(page_title="PDF Chatbot App",page_icon=img,layout="centered")
|
|
|
6 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
7 |
from langchain_community.embeddings.huggingface import HuggingFaceEmbeddings
|
8 |
from langchain.vectorstores import chroma
|
9 |
+
#from langchain.chains.retrieval_qa.base import RetrievalQA
|
10 |
from langchain.chains.question_answering import load_qa_chain
|
11 |
from langchain_community.llms import huggingface_hub
|
12 |
from langchain.document_loaders.pdf import PyMuPDFLoader
|
13 |
#from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
|
|
14 |
#from langchain.llms import huggingface_endpoint
|
15 |
+
#import os
|
16 |
+
#import fitz
|
17 |
+
#import tempfile
|
18 |
|
19 |
img = Image.open('image/nexio_logo1.png')
|
20 |
st.set_page_config(page_title="PDF Chatbot App",page_icon=img,layout="centered")
|