demoPOC commited on
Commit
611b4db
·
1 Parent(s): 0cc294c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- urlLoader=WebBaseLoader(request.form.getlist('weburl'))
 
 
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)