Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -168,38 +168,9 @@ demo = None
|
|
168 |
BOS_TOKEN = '<s>'
|
169 |
EOS_TOKEN = '</s>'
|
170 |
|
171 |
-
B_INST, E_INST = "[INST]", "[/INST]"
|
172 |
-
B_SYS, E_SYS = "<<SYS>>\n", "\n<</SYS>>\n\n"
|
173 |
|
174 |
-
|
175 |
-
SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. You are built by DAMO Academy, Alibaba Group. \
|
176 |
-
Please always answer as helpfully as possible, while being safe. Your \
|
177 |
-
answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
|
178 |
-
that your responses are socially unbiased and positive in nature.
|
179 |
|
180 |
-
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not \
|
181 |
-
correct. If you don't know the answer to a question, please don't share false information.
|
182 |
-
|
183 |
-
As a multilingual assistant, you must respond and follow instructions in the native language of the user by default, unless told otherwise. \
|
184 |
-
Your response should adapt to the norms and customs of the respective language and culture.
|
185 |
-
"""
|
186 |
-
|
187 |
-
SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. You are built by DAMO Academy, Alibaba Group. \
|
188 |
-
Please always answer as helpfully as possible, while being safe. Your \
|
189 |
-
answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
|
190 |
-
that your responses are socially unbiased and positive in nature."""
|
191 |
-
|
192 |
-
# SYSTEM_PROMPT_1 = """You are a multilingual, helpful, respectful and honest assistant. \
|
193 |
-
# Please always answer as helpfully as possible, while being safe. Your \
|
194 |
-
# answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure \
|
195 |
-
# that your responses are socially unbiased and positive in nature.
|
196 |
-
|
197 |
-
# If a question does not make any sense, or is not factually coherent, explain why instead of answering something not \
|
198 |
-
# correct. If you don't know the answer to a question, please don't share false information.
|
199 |
-
|
200 |
-
# As a multilingual assistant, you must respond and follow instructions in the native language of the user by default, unless told otherwise. \
|
201 |
-
# Your response should adapt to the norms and customs of the respective language and culture.
|
202 |
-
# """
|
203 |
|
204 |
# ============ CONSTANT ============
|
205 |
# https://github.com/gradio-app/gradio/issues/884
|
|
|
168 |
BOS_TOKEN = '<s>'
|
169 |
EOS_TOKEN = '</s>'
|
170 |
|
|
|
|
|
171 |
|
172 |
+
SYSTEM_PROMPT_1 = """You are a helpful, respectful, honest and safe AI assistant built by Alibaba Group."""
|
|
|
|
|
|
|
|
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
# ============ CONSTANT ============
|
176 |
# https://github.com/gradio-app/gradio/issues/884
|