paloma99 commited on
Commit
340b75c
1 Parent(s): a3eced9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -19,7 +19,9 @@ sys.path.append('../..')
19
  #langchain
20
  from langchain.text_splitter import RecursiveCharacterTextSplitter, CharacterTextSplitter
21
  from langchain.embeddings import HuggingFaceEmbeddings
 
22
  from langchain.chains import RetrievalQA
 
23
  from langchain.schema import StrOutputParser
24
  from langchain.schema.runnable import Runnable
25
  from langchain.schema.runnable.config import RunnableConfig
@@ -28,13 +30,16 @@ from langchain.chains import (
28
  from langchain.vectorstores import Chroma
29
  from langchain.memory import ConversationBufferMemory
30
  from langchain.chains import LLMChain
 
31
  from langchain.prompts.chat import ChatPromptTemplate, SystemMessagePromptTemplate
32
- from langchain.prompts import SystemMessagePromptTemplate, HumanMessagePromptTemplate, ChatPromptTemplate
33
  from langchain.document_loaders import PyPDFDirectoryLoader
34
  from pydantic import BaseModel, Field
35
  from langchain.output_parsers import PydanticOutputParser
36
  from langchain_community.llms import HuggingFaceHub
37
  from langchain_community.document_loaders import WebBaseLoader
 
 
38
  import shutil
39
 
40
 
 
19
  #langchain
20
  from langchain.text_splitter import RecursiveCharacterTextSplitter, CharacterTextSplitter
21
  from langchain.embeddings import HuggingFaceEmbeddings
22
+ from langchain.prompts import PromptTemplate
23
  from langchain.chains import RetrievalQA
24
+ from langchain.prompts import ChatPromptTemplate
25
  from langchain.schema import StrOutputParser
26
  from langchain.schema.runnable import Runnable
27
  from langchain.schema.runnable.config import RunnableConfig
 
30
  from langchain.vectorstores import Chroma
31
  from langchain.memory import ConversationBufferMemory
32
  from langchain.chains import LLMChain
33
+ from langchain.prompts.prompt import PromptTemplate
34
  from langchain.prompts.chat import ChatPromptTemplate, SystemMessagePromptTemplate
35
+ from langchain.prompts import SystemMessagePromptTemplate, HumanMessagePromptTemplate, ChatPromptTemplate, MessagesPlaceholder
36
  from langchain.document_loaders import PyPDFDirectoryLoader
37
  from pydantic import BaseModel, Field
38
  from langchain.output_parsers import PydanticOutputParser
39
  from langchain_community.llms import HuggingFaceHub
40
  from langchain_community.document_loaders import WebBaseLoader
41
+
42
+ from pydantic import BaseModel
43
  import shutil
44
 
45