robertselvam commited on
Commit
495ea96
1 Parent(s): 85b834a

Update app.py

Browse files
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: