File size: 1,245 Bytes
64ef239
 
 
bab77bc
64ef239
 
 
 
 
 
 
 
 
 
 
 
 
 
8be0828
64ef239
 
 
587e240
 
 
 
 
 
 
 
 
64ef239
 
 
aa6963a
 
587e240
64ef239
 
587e240
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 'name', 'userMessageToken', 'assistantMessageToken' are required
MODELS=`[
  {
    "name": "HuggingFaceH4/zephyr-7b-beta",
    "promptExamples": [
      {
        "title": "Python Fibonacci",
        "prompt": "How can I write a Python function to generate the nth Fibonacci number?"
      }, {
        "title": "What is a meme?",
        "prompt": "What is a meme, and what's the history behind this word?"
      }, {
        "title": "Regex",
        "prompt": "Create a regex to extract dates from logs"
      }
    ],
    "endpoints": [
      {
        "type": "tgi",
        "url": "http://127.0.0.1:8080"
      }
    ],
    "parameters": {
      "temperature": 0.7,
      "top_p": 0.95,
      "repetition_penalty": 1.2,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 1024,
      "stop": ["</s>", "<|>"]
    }
  }
]`

PUBLIC_ORIGIN=https://huggingfaceh4-zephyr-chat.hf.space
PUBLIC_SHARE_PREFIX=https://huggingfaceh4-zephyr-chat.hf.space

PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app
PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
PUBLIC_APP_COLOR=blue # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette