Update index.mjs
This commit is contained in:
parent
b3905de344
commit
9e6dd0d162
1 changed files with 6 additions and 4 deletions
10
index.mjs
10
index.mjs
|
@ -9,7 +9,7 @@ import { promisify } from 'util';
|
||||||
// Promisify exec for using async/await
|
// Promisify exec for using async/await
|
||||||
const execPromise = promisify(exec);
|
const execPromise = promisify(exec);
|
||||||
|
|
||||||
const modelfilePath = "I:\rolling-agi-mf"
|
const modelfilePath = "I:rolling-agi-mf"
|
||||||
|
|
||||||
|
|
||||||
// Function to run the publishing commands
|
// Function to run the publishing commands
|
||||||
|
@ -124,7 +124,7 @@ async function siteCrawler(hostname) {
|
||||||
const loader = new RecursiveUrlLoader(crawled, {
|
const loader = new RecursiveUrlLoader(crawled, {
|
||||||
extractor: compiledConvert,
|
extractor: compiledConvert,
|
||||||
maxDepth: 2,
|
maxDepth: 2,
|
||||||
excludeDirs: ["https://search.sparksammy.com/", "https://search.sparksammy.com/search.php", "https://archive.org", "https://doubleclick.net"],
|
excludeDirs: ["https://search.sparksammy.com/", "https://search.sparksammy.com/search.php", "https://archive.org", "https://doubleclick.net", "https://paypal.com"],
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -156,7 +156,7 @@ async function main() {
|
||||||
try {
|
try {
|
||||||
await contextAdd(["en.wikipedia.org", "toontownrewritten.wiki", "cnn.com"]);
|
await contextAdd(["en.wikipedia.org", "toontownrewritten.wiki", "cnn.com"]);
|
||||||
await contextAdd(["clubpenguin.fandom.com", "foxnews.com", "nytimes.com"])
|
await contextAdd(["clubpenguin.fandom.com", "foxnews.com", "nytimes.com"])
|
||||||
await contextAdd(["https://stackoverflow.com/]");
|
await contextAdd(["https://stackoverflow.com/"]);
|
||||||
const modelfile = await generateModelfile(contexts);
|
const modelfile = await generateModelfile(contexts);
|
||||||
console.log(modelfile);
|
console.log(modelfile);
|
||||||
await writeFile(modelfilePath, modelfile)
|
await writeFile(modelfilePath, modelfile)
|
||||||
|
@ -181,4 +181,6 @@ async function mainLoop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mainLoop()
|
//mainLoop()
|
||||||
|
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in a new issue