Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  git github
Adrien Denat 2e899d043c
replace share API by simple copy to clipboard tooltip
2 years ago
4c70bcc71d
auto-formatting (#45)
2 years ago
src
2e899d043c
replace share API by simple copy to clipboard tooltip
2 years ago
229d4b4efa
Head meta (#77)
2 years ago
1eb0e2eef6
🐛 Make it work with default model
2 years ago
2 years ago
5da61b4a5e
Prettier update (#54)
2 years ago
2 years ago
2 years ago
2 years ago
b2387f62c8
Add tailwind prettier (#123)
2 years ago
f177e4b330
Simpler dockerfile (#126)
2 years ago
3451d26356
privacy page: link to main privacy page + mention privacy@ email address (#116)
2 years ago
5741be4ddc
📝 Document duplicating the space
2 years ago
97264999e4
⬆️ @huggingface/inference 2.2.0
2 years ago
97264999e4
⬆️ @huggingface/inference 2.2.0
2 years ago
640dc148af
🚨 Run prettier
2 years ago
5da61b4a5e
Prettier update (#54)
2 years ago
640dc148af
🚨 Run prettier
2 years ago
9c038aa1d0
Polyfill safari 14 (#149)
2 years ago
5da61b4a5e
Prettier update (#54)
2 years ago
Storage Buckets

README.md

You have to be logged in to leave a comment. Sign In
title emoji colorFrom colorTo sdk pinned license base_path app_port
chat-ui 🔥 purple purple docker false apache-2.0 /chat 3000

Chat UI

A chat interface using open source models, eg OpenAssistant.

Launch

npm install
npm run dev

Environment

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.

Duplicating to a Space

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.

Building

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.

Tip!

Press p or to see the previous file or, n or to see the next file

About

Open source codebase powering the HuggingChat app

Collaborators 1

Comments

Loading...