Spaces:
Running
on
A10G
Running
on
A10G
Update .env.local
Browse files- .env.local +11 -48
.env.local
CHANGED
|
@@ -1,30 +1,6 @@
|
|
| 1 |
-
# Use .env.local to change these variables
|
| 2 |
-
# DO NOT EDIT THIS FILE WITH SENSITIVE DATA
|
| 3 |
-
|
| 4 |
-
MONGODB_URL=${MONGODB_URL}
|
| 5 |
-
MONGODB_DB_NAME=chat-ui
|
| 6 |
-
MONGODB_DIRECT_CONNECTION=false
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
COOKIE_NAME=chat-ui
|
| 10 |
-
HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
|
| 11 |
-
|
| 12 |
-
# used to activate search with web functionality. disabled if not defined
|
| 13 |
-
SERPAPI_KEY=#your serpapi key here
|
| 14 |
-
|
| 15 |
-
# Parameters to enable "Sign in with HF"
|
| 16 |
-
OPENID_CLIENT_ID=
|
| 17 |
-
OPENID_CLIENT_SECRET=
|
| 18 |
-
OPENID_SCOPES="openid profile" # Add "email" for some providers like Google that do not provide preferred_username
|
| 19 |
-
OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.google.com
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
# 'name', 'userMessageToken', 'assistantMessageToken' are required
|
| 23 |
MODELS=`[
|
| 24 |
{
|
| 25 |
-
"name": "
|
| 26 |
-
"chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",
|
| 27 |
-
"preprompt": "",
|
| 28 |
"promptExamples": [
|
| 29 |
{
|
| 30 |
"title": "Python Fibonacci",
|
|
@@ -43,29 +19,16 @@ MODELS=`[
|
|
| 43 |
"url": "http://127.0.0.1:8080"
|
| 44 |
}
|
| 45 |
],
|
| 46 |
-
"parameters":
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
PUBLIC_ANNOUNCEMENT_BANNERS=`[
|
| 56 |
-
{
|
| 57 |
-
"title": "Chat UI is now open sourced on GitHub",
|
| 58 |
-
"linkTitle": "GitHub repo",
|
| 59 |
-
"linkHref": "https://github.com/huggingface/chat-ui"
|
| 60 |
}
|
| 61 |
]`
|
| 62 |
|
| 63 |
-
|
| 64 |
-
PARQUET_EXPORT_HF_TOKEN=
|
| 65 |
-
PARQUET_EXPORT_SECRET=
|
| 66 |
-
|
| 67 |
-
PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app
|
| 68 |
-
PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
|
| 69 |
-
PUBLIC_APP_COLOR=${APP_COLOR} # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
|
| 70 |
-
PUBLIC_APP_DATA_SHARING=#set to 1 to enable disclaimers & options about data sharing
|
| 71 |
-
PUBLIC_APP_DATA_DISCLAIMER=#set to 1 to enable disclaimers about model outputs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
MODELS=`[
|
| 2 |
{
|
| 3 |
+
"name": "Your Model",
|
|
|
|
|
|
|
| 4 |
"promptExamples": [
|
| 5 |
{
|
| 6 |
"title": "Python Fibonacci",
|
|
|
|
| 19 |
"url": "http://127.0.0.1:8080"
|
| 20 |
}
|
| 21 |
],
|
| 22 |
+
"parameters": {
|
| 23 |
+
"temperature": 0.7,
|
| 24 |
+
"top_p": 0.95,
|
| 25 |
+
"repetition_penalty": 1.2,
|
| 26 |
+
"top_k": 50,
|
| 27 |
+
"truncate": 1000,
|
| 28 |
+
"max_new_tokens": 1024,
|
| 29 |
+
"stop": ["</s>", "<|>"]
|
| 30 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
]`
|
| 33 |
|
| 34 |
+
PUBLIC_APP_NAME="Your ChatUI App"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|