Refactor loader classes to accept inputs directly

This commit is contained in:
Alex
2024-02-14 15:17:56 +00:00
parent 030c2a740f
commit 0cb3d12d94
4 changed files with 9 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ class WebLoader(BaseRemote):
self.loader = WebBaseLoader
def load_data(self, inputs):
urls = inputs['data']
urls = inputs
if isinstance(urls, str):
urls = [urls] # Convert string to list if a single URL is passed