Karthikeyan robertselvam commited on
Commit
06d056f
·
1 Parent(s): 8009537

Update app.py (#5)

Browse files

- Update app.py (495ea96eec1f2d24c8702fe6af1b67fb8058f577)


Co-authored-by: Selvam V <[email protected]>

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",post_processors=[clean_extra_whitespace])
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",post_processors=[clean_extra_whitespace])
63
  docs = loader.load()
 
 
64
  knowledge_base = create_knowledge_base(docs)
65
  return file_path, {"knowledge_base": knowledge_base}
66
  else: