Spaces:
Sleeping
Sleeping
Update app.py
#5
by
robertselvam
- opened
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:
|