change input

This commit is contained in:
Pavel
2023-10-13 21:52:56 +04:00
parent 8b3b16bce4
commit 381a2740ee
4 changed files with 9 additions and 5 deletions

View File

@@ -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