| # 'name', 'userMessageToken', 'assistantMessageToken' are required | |
| MODELS=`[ | |
| { | |
| "name": "${MODEL_NAME}", | |
| "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_ANNOUNCEMENT_BANNERS=`[ | |
| { | |
| "title": "Chat UI is now open sourced on GitHub", | |
| "linkTitle": "GitHub repo", | |
| "linkHref": "https://github.com/huggingface/chat-ui" | |
| } | |
| 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 | |