Tonic commited on
Commit
8c82859
1 Parent(s): c47b0f3

fix document loader

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -243,7 +243,7 @@ def respond(
243
 
244
  def upload_documents(files):
245
  for file in files:
246
- loader = DocumentLoader(file.name)
247
  documents = loader.load_documents()
248
  chroma_manager.add_documents(documents)
249
  return "Documents uploaded and processed successfully!"
 
243
 
244
  def upload_documents(files):
245
  for file in files:
246
+ loader = UnstructuredFileLoader(file.name)
247
  documents = loader.load_documents()
248
  chroma_manager.add_documents(documents)
249
  return "Documents uploaded and processed successfully!"