coyotte508 commited on
Commit ·
5741be4
1
Parent(s): a3810f8
📝 Document duplicating the space
Browse files26 unmodified lines2728293031323334353626 unmodified linesCheck out [.env](./.env) to see what needs to be set.Basically you need to:- fill in a Mongo URL- fill in your HF token## Building26 unmodified lines27282930313233343536373839404142434445464748495051525354555657585926 unmodified linesCheck out [.env](./.env) to see what needs to be set.Basically you need to create a `.env.local` with the following contents:```MONGODB_URL=<url to mongo, for example a free MongoDB Atlas sandbox instance>MODEL_ENDPOINTS=`[{"endpoint": "https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5","authorization": "Bearer <hf_token>","weight": 1}]````Where the contents in `<...>` are replaced by the MongoDB URL and your [HF Access Token](https://huggingface.co/settings/tokens).## Duplicating to a SpaceCreate a `DOTENV_LOCAL` secret to your space with the following contents:```MONGODB_URL=<url to mongo, for example a free MongoDB Atlas sandbox instance>MODEL_ENDPOINTS=`[{"endpoint": "https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5","authorization": "Bearer <hf_token>","weight": 1}]````Where the contents in `<...>` are replaced by the MongoDB URL and your [HF Access Token](https://huggingface.co/settings/tokens).## Building
README.md+26-3