julien-c HF staff commited on
Commit
72938d2
1 Parent(s): 62db40f

Ok also push a .env then

Browse files
Files changed (4) hide show
  1. .env +8 -0
  2. .gitignore +2 -2
  3. README.md +1 -1
  4. src/routes/+page.svelte +3 -1
.env ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ PUBLIC_HF_TOKEN=
2
+ PUBLIC_ENDPOINT=https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-1-pythia-12b
3
+ PUBLIC_MODEL_NAME=OpenAssistant/oasst-sft-1-pythia-12b
4
+ PUBLIC_MODEL_TAGLINE=This is the first iteration English supervised-fine-tuning (SFT) model of the <a class="underline" href="https://github.com/LAION-AI/Open-Assistant">Open-Assistant</a> project. It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations of assistant conversations collected through the <a class="underline" href="https://open-assistant.io/">https://open-assistant.io/</a> human feedback web app before March 7, 2023.
5
+ PUBLIC_DISABLE_INTRO_TILES=true
6
+ PUBLIC_USER_MESSAGE_TOKEN=<|prompter|>
7
+ PUBLIC_ASSISTANT_MESSAGE_TOKEN=<|assistant|>
8
+ PUBLIC_SEP_TOKEN=<|endoftext|>
.gitignore CHANGED
@@ -3,8 +3,8 @@ node_modules
3
  /build
4
  /.svelte-kit
5
  /package
6
- .env
7
- .env.*
8
  !.env.example
9
  vite.config.js.timestamp-*
10
  vite.config.ts.timestamp-*
 
3
  /build
4
  /.svelte-kit
5
  /package
6
+ # .env
7
+ # .env.*
8
  !.env.example
9
  vite.config.js.timestamp-*
10
  vite.config.ts.timestamp-*
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: OpenAssistant/oasst-sft-1-pythia-12b
3
  emoji: 🔥
4
  colorFrom: purple
5
  colorTo: purple
 
1
  ---
2
+ title: oasst-sft-1-pythia-12b
3
  emoji: 🔥
4
  colorFrom: purple
5
  colorTo: purple
src/routes/+page.svelte CHANGED
@@ -29,7 +29,9 @@
29
  Accept: 'text/event-stream',
30
  'Content-Type': 'application/json',
31
  "user-agent": "chat-ui/0.0.1",
32
- "authorization": `Bearer ${PUBLIC_HF_TOKEN}`,
 
 
33
  },
34
  body: JSON.stringify({
35
  inputs: inputs,
 
29
  Accept: 'text/event-stream',
30
  'Content-Type': 'application/json',
31
  "user-agent": "chat-ui/0.0.1",
32
+ ...(PUBLIC_HF_TOKEN ? {
33
+ "authorization": `Bearer ${PUBLIC_HF_TOKEN}`,
34
+ } : {}),
35
  },
36
  body: JSON.stringify({
37
  inputs: inputs,