Spaces:
Runtime error
Runtime error
gkrthk
commited on
Commit
•
bf88efa
1
Parent(s):
6acc7d5
fix error
Browse files- confluence_qa.py +1 -1
- requirements.txt +2 -1
confluence_qa.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from langchain.document_loaders import ConfluenceLoader
|
2 |
from langchain.text_splitter import RecursiveCharacterTextSplitter,TokenTextSplitter
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM,pipeline
|
4 |
-
from langchain import HuggingFacePipeline
|
5 |
from langchain.prompts import PromptTemplate
|
6 |
from langchain.chains import RetrievalQA
|
7 |
from langchain.embeddings import HuggingFaceEmbeddings
|
|
|
1 |
from langchain.document_loaders import ConfluenceLoader
|
2 |
from langchain.text_splitter import RecursiveCharacterTextSplitter,TokenTextSplitter
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM,pipeline
|
4 |
+
from langchain.llms.huggingface_pipeline import HuggingFacePipeline
|
5 |
from langchain.prompts import PromptTemplate
|
6 |
from langchain.chains import RetrievalQA
|
7 |
from langchain.embeddings import HuggingFaceEmbeddings
|
requirements.txt
CHANGED
@@ -9,4 +9,5 @@ pytesseract
|
|
9 |
reportlab
|
10 |
Pillow
|
11 |
svglib
|
12 |
-
tiktoken
|
|
|
|
9 |
reportlab
|
10 |
Pillow
|
11 |
svglib
|
12 |
+
tiktoken
|
13 |
+
beautifulsoup4
|