Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,9 @@ def file_Upload():
|
|
94 |
loader = UnstructuredFileLoader(os.path.join(uploads_dir, secure_filename(file.filename)), mode='elements')
|
95 |
documents.extend(loader.load())
|
96 |
if urlProvided:
|
97 |
-
|
|
|
|
|
98 |
documents.extend(urlLoader.load())
|
99 |
|
100 |
print(uploads_dir)
|
|
|
94 |
loader = UnstructuredFileLoader(os.path.join(uploads_dir, secure_filename(file.filename)), mode='elements')
|
95 |
documents.extend(loader.load())
|
96 |
if urlProvided:
|
97 |
+
urlList=request.form.getlist('weburl')
|
98 |
+
print(urlList)
|
99 |
+
urlLoader=WebBaseLoader(urlList))
|
100 |
documents.extend(urlLoader.load())
|
101 |
|
102 |
print(uploads_dir)
|