You don't need this anymore

This commit is contained in:
Dragon Fire
2024-05-06 14:03:41 -04:00
parent 8bd76fa5a6
commit aae29b48fe
3 changed files with 10 additions and 19 deletions
-3
View File
@@ -21,9 +21,6 @@ blacklist.json
# DECTalk
dectalk/
# Tensorflow Models
tf_models/
# Mac Files
.DS_Store
+9 -10
View File
@@ -97,16 +97,15 @@ things, I'm not taking any chances.
9. [Follow these instructions to install ImageMagick](https://www.tecmint.com/install-imagemagick-on-debian-ubuntu/).
10. [Follow these instructions to set up Redis](https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-18-04). Remember to set up a password!
11. Run `apt install libtool` so sodium can compile if necessary. **(Optional)**
12. Download [the NSFW model](https://github.com/gantman/nsfw_model) and extract the contents to `<xiao folder>/tf_models/nsfw`.
13. Download DECTalk and extract `dectalk.dll`, `dtalk_us.dic`, `MSVCRTd.DLL`, and `say.exe` to `dectalk/`. I cannot help you find this.
14. Run `apt install wine` to install wine.
15. Run `dpkg --add-architecture i386` to allow installation of wine32.
16. Run `apt update` again.
17. Run `apt install wine32` to install wine32.
18. Run `apt install xvfb` to install xvfb.
19. Run `yarn install --production` in the folder you cloned the bot.
20. Run `npx parse-domain-update` to update the domain list for `parse-domain`.
21. Start Xiao up!
12. Download DECTalk and extract `dectalk.dll`, `dtalk_us.dic`, `MSVCRTd.DLL`, and `say.exe` to `dectalk/`. I cannot help you find this.
13. Run `apt install wine` to install wine.
14. Run `dpkg --add-architecture i386` to allow installation of wine32.
15. Run `apt update` again.
16. Run `apt install wine32` to install wine32.
17. Run `apt install xvfb` to install xvfb.
18. Run `yarn install --production` in the folder you cloned the bot.
19. Run `npx parse-domain-update` to update the domain list for `parse-domain`.
20. Start Xiao up!
## Commands
Total: 510
+1 -6
View File
@@ -2,8 +2,6 @@ const tfnode = require('@tensorflow/tfjs-node');
const nsfw = require('nsfwjs');
const faceDetection = require('@tensorflow-models/face-detection');
const faceModel = faceDetection.SupportedModels.MediaPipeFaceDetector;
const url = require('url');
const path = require('path');
module.exports = class Tensorflow {
constructor(client) {
@@ -14,10 +12,7 @@ module.exports = class Tensorflow {
}
async loadNSFWJS() {
const nsfwjs = await nsfw.load(
`${url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href}/`,
{ type: 'graph' }
);
const nsfwjs = await nsfw.load();
this.nsfwjs = nsfwjs;
return this.nsfwjs;
}