updated deprecated imports
Browse files
app.py
CHANGED
@@ -5,14 +5,13 @@ from huggingface_hub import InferenceClient
|
|
5 |
from langchain_community.llms import CTransformers
|
6 |
from langchain.prompts import FewShotChatMessagePromptTemplate, ChatPromptTemplate, FewShotPromptTemplate
|
7 |
import gradio as gr
|
8 |
-
from
|
9 |
-
from
|
10 |
# from langchain.document_loaders import WikipediaLoader
|
11 |
-
from
|
12 |
-
from
|
13 |
-
from
|
14 |
-
from
|
15 |
-
from langchain.chains import RetrievalQA
|
16 |
from operator import itemgetter
|
17 |
from langchain_core.output_parsers import JsonOutputParser
|
18 |
from langchain_core.outputs import Generation
|
|
|
5 |
from langchain_community.llms import CTransformers
|
6 |
from langchain.prompts import FewShotChatMessagePromptTemplate, ChatPromptTemplate, FewShotPromptTemplate
|
7 |
import gradio as gr
|
8 |
+
from langchain_community.chains import LLMChain
|
9 |
+
from langchain_community.prompts import PromptTemplate
|
10 |
# from langchain.document_loaders import WikipediaLoader
|
11 |
+
from langchain_community.document_loaders import JSONLoader
|
12 |
+
from langchain_community.text_splitter import CharacterTextSplitter
|
13 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
14 |
+
from langchain_community.vectorstores import Chroma
|
|
|
15 |
from operator import itemgetter
|
16 |
from langchain_core.output_parsers import JsonOutputParser
|
17 |
from langchain_core.outputs import Generation
|