Are you sure you want to delete this access key?
title | emoji | colorFrom | colorTo | sdk | pinned | license | base_path | app_port |
---|---|---|---|---|---|---|---|---|
chat-ui | 🔥 | purple | purple | docker | false | apache-2.0 | /chat | 3000 |
A chat interface using open source models, eg OpenAssistant.
npm install
npm run dev
Default configuration is in .env
. Put custom config and secrets in .env.local
, it will override the values in .env
.
Check out .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.
Create 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.
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?