Spaces:
Runtime error
Runtime error
unbrandedhuman
commited on
Commit
·
55f7b78
1
Parent(s):
1cadf2f
Update README.md
Browse files
README.md
CHANGED
@@ -1,71 +1,17 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
-
pinned:
|
8 |
license: apache-2.0
|
9 |
base_path: /chat
|
10 |
app_port: 3000
|
11 |
-
duplicated_from: huggingchat/chat-ui
|
12 |
---
|
13 |
|
14 |
-
#
|
15 |
|
16 |
-
|
17 |
|
18 |
-
##
|
19 |
-
|
20 |
-
```bash
|
21 |
-
npm install
|
22 |
-
npm run dev
|
23 |
-
```
|
24 |
-
|
25 |
-
## Environment
|
26 |
-
|
27 |
-
Default configuration is in `.env`. Put custom config and secrets in `.env.local`, it will override the values in `.env`.
|
28 |
-
|
29 |
-
Check out [.env](./.env) to see what needs to be set.
|
30 |
-
|
31 |
-
Basically you need to create a `.env.local` with the following contents:
|
32 |
-
|
33 |
-
```
|
34 |
-
MONGODB_URL=<url to mongo, for example a free MongoDB Atlas sandbox instance>
|
35 |
-
HF_ACCESS_TOKEN=<your HF access token from https://huggingface.co/settings/tokens>
|
36 |
-
```
|
37 |
-
|
38 |
-
## Duplicating to a Space
|
39 |
-
|
40 |
-
Create a `DOTENV_LOCAL` secret to your space with the following contents:
|
41 |
-
|
42 |
-
```
|
43 |
-
MONGODB_URL=<url to mongo, for example a free MongoDB Atlas sandbox instance>
|
44 |
-
HF_ACCESS_TOKEN=<your HF access token from https://huggingface.co/settings/tokens>
|
45 |
-
```
|
46 |
-
|
47 |
-
Where the contents in `<...>` are replaced by the MongoDB URL and your [HF Access Token](https://huggingface.co/settings/tokens).
|
48 |
-
|
49 |
-
## Running Local Inference
|
50 |
-
|
51 |
-
Both the example above use the HF Inference API or HF Endpoints API.
|
52 |
-
|
53 |
-
If you want to run the model locally, you need to run this inference server locally: https://github.com/huggingface/text-generation-inference
|
54 |
-
|
55 |
-
And add this to your `.env.local`:
|
56 |
-
|
57 |
-
```
|
58 |
-
MODELS=`[{"name": "...", "endpoints": [{"url": "127.0.0.1:8080/generate_stream"}]}]`
|
59 |
-
```
|
60 |
-
|
61 |
-
## Building
|
62 |
-
|
63 |
-
To create a production version of your app:
|
64 |
-
|
65 |
-
```bash
|
66 |
-
npm run build
|
67 |
-
```
|
68 |
-
|
69 |
-
You can preview the production build with `npm run preview`.
|
70 |
-
|
71 |
-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
|
1 |
---
|
2 |
+
title: Duet
|
3 |
+
emoji: 🌍
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: yellow
|
6 |
sdk: docker
|
7 |
+
pinned: true
|
8 |
license: apache-2.0
|
9 |
base_path: /chat
|
10 |
app_port: 3000
|
|
|
11 |
---
|
12 |
|
13 |
+
# Macie
|
14 |
|
15 |
+
Macie's an innovative AI assistant designed to create connections that are personal and powerful.
|
16 |
|
17 |
+
## Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|