Spaces:
Running
Running
Download scripts/setup-local.js from AhmedMSLTI/Millie: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/AhmedMSLTI/Millie/resolve/main/scripts/setup-local.js
- Command line
-
hf download hf://spaces/AhmedMSLTI/Millie/scripts/setup-local.js
-
curl -L -o setup-local.js https://huggingface.co/spaces/AhmedMSLTI/Millie/resolve/main/scripts/setup-local.js
466 Bytes
| import { copyFile } from 'node:fs/promises'; | |
| import { constants } from 'node:fs'; | |
| try { | |
| await copyFile(new URL('../.env.example', import.meta.url), new URL('../.env', import.meta.url), constants.COPYFILE_EXCL); | |
| console.log('Created .env. Add your Vocal Bridge API key locally. OpenAI is optional for common fictional inventory/FAQ questions.'); | |
| } catch (error) { | |
| if (error.code !== 'EEXIST') throw error; | |
| console.log('Your existing .env was preserved.'); | |
| } | |