Spaces:
Sleeping
Sleeping
Update .env.local.template
Browse files- .env.local.template +28 -25
.env.local.template
CHANGED
@@ -68,34 +68,37 @@ MODELS=`[
|
|
68 |
}
|
69 |
],
|
70 |
"parameters": ${MODEL_PARAMS}
|
71 |
-
},
|
72 |
-
{
|
73 |
-
"name": "czearing/article-title-generator",
|
74 |
-
"preprompt": "",
|
75 |
-
"chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",
|
76 |
-
"promptExamples": [
|
77 |
-
{
|
78 |
-
"title": "Python Fibonacci",
|
79 |
-
"prompt": "How can I write a Python function to generate the nth Fibonacci number?"
|
80 |
-
}, {
|
81 |
-
"title": "What is a meme?",
|
82 |
-
"prompt": "What is a meme, and what's the history behind this word?"
|
83 |
-
}, {
|
84 |
-
"title": "Regex",
|
85 |
-
"prompt": "Create a regex to extract dates from logs"
|
86 |
-
}
|
87 |
-
],
|
88 |
-
"endpoints": [
|
89 |
-
{
|
90 |
-
"type": "tgi",
|
91 |
-
"url": "http://localhost:8090",
|
92 |
-
}
|
93 |
-
],
|
94 |
-
"parameters": ${MODEL_PARAMS}
|
95 |
}
|
96 |
]`
|
97 |
|
98 |
-
TASK_MODEL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
100 |
|
101 |
PUBLIC_ORIGIN=${SPACE_HOST}
|
|
|
68 |
}
|
69 |
],
|
70 |
"parameters": ${MODEL_PARAMS}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
]`
|
73 |
|
74 |
+
TASK_MODEL=`{
|
75 |
+
"name": "czearing/article-title-generator",
|
76 |
+
"preprompt": "",
|
77 |
+
"chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",
|
78 |
+
"promptExamples": [
|
79 |
+
{
|
80 |
+
"title": "Python Fibonacci",
|
81 |
+
"prompt": "How can I write a Python function to generate the nth Fibonacci number?"
|
82 |
+
}, {
|
83 |
+
"title": "What is a meme?",
|
84 |
+
"prompt": "What is a meme, and what's the history behind this word?"
|
85 |
+
}, {
|
86 |
+
"title": "Regex",
|
87 |
+
"prompt": "Create a regex to extract dates from logs"
|
88 |
+
}
|
89 |
+
],
|
90 |
+
"endpoints": [
|
91 |
+
{
|
92 |
+
"type": "tgi",
|
93 |
+
"url": "http://localhost:8090",
|
94 |
+
}
|
95 |
+
],
|
96 |
+
"parameters": {
|
97 |
+
"temperature": 0.2,
|
98 |
+
"repetition_penalty": 2,
|
99 |
+
"max_new_tokens": 50,
|
100 |
+
}
|
101 |
+
}`
|
102 |
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
103 |
|
104 |
PUBLIC_ORIGIN=${SPACE_HOST}
|