tomascufaro commited on
Commit
c7c39d8
·
1 Parent(s): 10bb25e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def format_docs(docs):
56
 
57
 
58
  def wrap_all(file, input_prompt:str):
59
- loader = Docx2txtLoader(file.name)
60
  data = loader.load()
61
  db = doc_to_embeddings(data)
62
  retriever = db.as_retriever()
 
56
 
57
 
58
  def wrap_all(file, input_prompt:str):
59
+ loader = Docx2txtLoader(file)
60
  data = loader.load()
61
  db = doc_to_embeddings(data)
62
  retriever = db.as_retriever()