mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 06:17:23 +00:00
change input
This commit is contained in:
1 parent
8b3b16bce4
commit
381a2740ee
4 files changed
+9
-5
No files matched your search
@@ -5,7 +5,9 @@ class WebLoader(BaseRemote):
|
||||
from langchain.document_loaders import WebBaseLoader
|
||||
self.loader = WebBaseLoader
|
||||
|
||||
def load_data(self, urls):
|
||||
def load_data(self, inputs):
|
||||
urls = inputs['data']
|
||||
|
||||
if isinstance(urls, str):
|
||||
urls = [urls] # Convert string to list if a single URL is passed
|
||||
|
||||
|
||||
Reference in new issue
Block a user