Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -61,8 +61,6 @@ def upload_via_url(url):
61
  file_path = temp_file.name
62
  loader = UnstructuredFileLoader(file_path, strategy="fast")
63
  docs = loader.load()
64
- with open(file_path, mode="rb") as f:
65
- pass
66
  knowledge_base = create_knowledge_base(docs)
67
  return file_path, {"knowledge_base": knowledge_base}
68
  else:
 
61
  file_path = temp_file.name
62
  loader = UnstructuredFileLoader(file_path, strategy="fast")
63
  docs = loader.load()
 
 
64
  knowledge_base = create_knowledge_base(docs)
65
  return file_path, {"knowledge_base": knowledge_base}
66
  else: