update/create maxDepthCount so that it hopefully wont run out of heapmem
This commit is contained in:
parent
fe0fa62361
commit
864e2657dc
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ const execPromise = promisify(exec);
|
|||
|
||||
const modelfilePath = "I:rolling-agi-mf"
|
||||
|
||||
const maxDepthCount = 8
|
||||
|
||||
// Function to run the publishing commands
|
||||
async function runPublishCommands() {
|
||||
|
@ -124,7 +125,7 @@ async function siteCrawler(hostname) {
|
|||
|
||||
const loader = new RecursiveUrlLoader(crawled, {
|
||||
extractor: compiledConvert,
|
||||
maxDepth: 14,
|
||||
maxDepth: maxDepthCount,
|
||||
excludeDirs: ["https://search.sparksammy.com/", "https://search.sparksammy.com/search.php", "https://archive.org", "https://doubleclick.net", "https://paypal.com"],
|
||||
});
|
||||
const webContents = await loader.load();
|
||||
|
|
Loading…
Reference in a new issue