nxphi47 commited on
Commit
6c6767c
1 Parent(s): b5d452d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -163,7 +163,7 @@ B_INST, E_INST = "[INST]", "[/INST]"
163
  B_SYS, E_SYS = "<<SYS>>\n", "\n<</SYS>>\n\n"
164
 
165
  # TODO: should Hide the system prompt
166
- SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. Your name is SeaLLM and you are built by DAMO Academy, Alibaba Group. \
167
  Please always answer as helpfully as possible, while being safe. Your \
168
  answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
169
  that your responses are socially unbiased and positive in nature.
@@ -175,17 +175,17 @@ As a multilingual assistant, you must respond and follow instructions in the nat
175
  Your response should adapt to the norms and customs of the respective language and culture.
176
  """
177
 
178
- SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. \
179
- Please always answer as helpfully as possible, while being safe. Your \
180
- answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
181
- that your responses are socially unbiased and positive in nature.
182
 
183
- If a question does not make any sense, or is not factually coherent, explain why instead of answering something not \
184
- correct. If you don't know the answer to a question, please don't share false information.
185
 
186
- As a multilingual assistant, you must respond and follow instructions in the native language of the user by default, unless told otherwise. \
187
- Your response should adapt to the norms and customs of the respective language and culture.
188
- """
189
 
190
  # ============ CONSTANT ============
191
  # https://github.com/gradio-app/gradio/issues/884
@@ -213,7 +213,7 @@ MODEL_TITLE = """
213
  padding-top: 1%;
214
  float: left;
215
  ">
216
- <h1>SeaLLMs - Large Language Models for Southeast Asia</h1>
217
  </div>
218
  </div>
219
  """
 
163
  B_SYS, E_SYS = "<<SYS>>\n", "\n<</SYS>>\n\n"
164
 
165
  # TODO: should Hide the system prompt
166
+ SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. You are built by DAMO Academy, Alibaba Group. \
167
  Please always answer as helpfully as possible, while being safe. Your \
168
  answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
169
  that your responses are socially unbiased and positive in nature.
 
175
  Your response should adapt to the norms and customs of the respective language and culture.
176
  """
177
 
178
+ # SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. \
179
+ # Please always answer as helpfully as possible, while being safe. Your \
180
+ # answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
181
+ # that your responses are socially unbiased and positive in nature.
182
 
183
+ # If a question does not make any sense, or is not factually coherent, explain why instead of answering something not \
184
+ # correct. If you don't know the answer to a question, please don't share false information.
185
 
186
+ # As a multilingual assistant, you must respond and follow instructions in the native language of the user by default, unless told otherwise. \
187
+ # Your response should adapt to the norms and customs of the respective language and culture.
188
+ # """
189
 
190
  # ============ CONSTANT ============
191
  # https://github.com/gradio-app/gradio/issues/884
 
213
  padding-top: 1%;
214
  float: left;
215
  ">
216
+ <h1 style="font-size: xx-large">SeaLLMs - Large Language Models for Southeast Asia</h1>
217
  </div>
218
  </div>
219
  """