mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
10 lines
300 B
Python
10 lines
300 B
Python
from application.parser.remote.base import BaseRemote
|
|
|
|
class WebLoader(BaseRemote):
|
|
def __init__(self):
|
|
from langchain.document_loaders import WebBaseLoader
|
|
self.loader = WebBaseLoader
|
|
|
|
def load_data(self, urls):
|
|
loader = self.loader(urls)
|
|
return loader.load() |