mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
change input
This commit is contained in:
@@ -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