KetanJogadankar commited on
Commit
b08bc6e
·
verified ·
1 Parent(s): 9a57181

updated deprecated imports

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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 langchain.chains import LLMChain
9
- from langchain.prompts import PromptTemplate
10
  # from langchain.document_loaders import WikipediaLoader
11
- from langchain.document_loaders import JSONLoader
12
- from langchain.text_splitter import CharacterTextSplitter
13
- from langchain.embeddings import HuggingFaceEmbeddings
14
- from langchain.vectorstores import Chroma
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