angelesteban00 commited on
Commit
a59ef83
1 Parent(s): d24775b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ from pymongo import MongoClient
2
  from langchain.embeddings.openai import OpenAIEmbeddings
3
  # error since Jan 2024, from langchain.vectorstores import MongoDBAtlasVectorSearch
4
  from langchain_community.vectorstores import MongoDBAtlasVectorSearch
5
- from langchain.document_loaders import DirectoryLoader
 
6
  from langchain.llms import OpenAI
7
  from langchain.chains import RetrievalQA
8
  import gradio as gr
 
2
  from langchain.embeddings.openai import OpenAIEmbeddings
3
  # error since Jan 2024, from langchain.vectorstores import MongoDBAtlasVectorSearch
4
  from langchain_community.vectorstores import MongoDBAtlasVectorSearch
5
+ # error since Jan 2024, from langchain.document_loaders import DirectoryLoader
6
+ from langchain_community.document_loaders import DirectoryLoader
7
  from langchain.llms import OpenAI
8
  from langchain.chains import RetrievalQA
9
  import gradio as gr