ankush13r commited on
Commit
c599b00
1 Parent(s): e619fa7

Update .env.local.template

Browse files
Files changed (1) hide show
  1. .env.local.template +52 -2
.env.local.template CHANGED
@@ -23,7 +23,6 @@ OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.go
23
  MODELS=`[
24
  {
25
  "name": "${MODEL_NAME}",
26
- "chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",
27
  "preprompt": "",
28
  "promptExamples": [
29
  {
@@ -37,15 +36,66 @@ MODELS=`[
37
  "prompt": "Create a regex to extract dates from logs"
38
  }
39
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  "endpoints": [
41
  {
42
  "type": "tgi",
43
- "url": "http://127.0.0.1:8080"
44
  }
45
  ],
46
  "parameters": ${MODEL_PARAMS}
47
  }
48
  ]`
 
 
49
  OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
50
 
51
  PUBLIC_ORIGIN=${SPACE_HOST}
 
23
  MODELS=`[
24
  {
25
  "name": "${MODEL_NAME}",
 
26
  "preprompt": "",
27
  "promptExamples": [
28
  {
 
36
  "prompt": "Create a regex to extract dates from logs"
37
  }
38
  ],
39
+ "endpoints": [
40
+ {
41
+ "type": "openai",
42
+ "baseURL": "${BASEURL}",
43
+ "apiKey": "${HF_TOKEN}"
44
+ }
45
+ ],
46
+ "parameters": ${MODEL_PARAMS}
47
+ },
48
+ {
49
+ "name": "LOCALHOST:8080/v1",
50
+ "preprompt": "",
51
+ "promptExamples": [
52
+ {
53
+ "title": "Python Fibonacci",
54
+ "prompt": "How can I write a Python function to generate the nth Fibonacci number?"
55
+ }, {
56
+ "title": "What is a meme?",
57
+ "prompt": "What is a meme, and what's the history behind this word?"
58
+ }, {
59
+ "title": "Regex",
60
+ "prompt": "Create a regex to extract dates from logs"
61
+ }
62
+ ],
63
+ "endpoints": [
64
+ {
65
+ "type": "openai",
66
+ "baseURL": "https://localhost:8080/v1",
67
+ "apiKey": "hf_xxxx"
68
+ }
69
+ ],
70
+ "parameters": ${MODEL_PARAMS}
71
+ },
72
+ {
73
+ "name": "fabiochiu/t5-small-medium-title-generation",
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": "https://localhost:8090",
92
  }
93
  ],
94
  "parameters": ${MODEL_PARAMS}
95
  }
96
  ]`
97
+
98
+ TASK_MODEL="fabiochiu/t5-small-medium-title-generation"
99
  OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
100
 
101
  PUBLIC_ORIGIN=${SPACE_HOST}