Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,9 @@ from langchain_core.prompts import ChatPromptTemplate
|
|
15 |
prompt = ChatPromptTemplate.from_template("tell me a joke about {topic}")
|
16 |
chain = prompt | llm | StrOutputParser()
|
17 |
|
18 |
-
from langchain.document_loaders.csv_loader import CSVLoader
|
|
|
|
|
19 |
|
20 |
loader = CSVLoader(file_path='aiotsmartlabs_faq.csv', source_column = 'prompt')
|
21 |
data = loader.load()
|
|
|
15 |
prompt = ChatPromptTemplate.from_template("tell me a joke about {topic}")
|
16 |
chain = prompt | llm | StrOutputParser()
|
17 |
|
18 |
+
# from langchain.document_loaders.csv_loader import CSVLoader
|
19 |
+
from langchain_community.document_loaders.csv_loader import CSVLoader
|
20 |
+
|
21 |
|
22 |
loader = CSVLoader(file_path='aiotsmartlabs_faq.csv', source_column = 'prompt')
|
23 |
data = loader.load()
|