akdeniz27 commited on
Commit
b254853
1 Parent(s): fccc0d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -5,9 +5,19 @@ from easyllm.prompt_utils import build_llama2_prompt
5
 
6
  huggingface.prompt_builder = build_llama2_prompt
7
 
8
- system_message = "\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information."
 
 
 
 
 
 
 
 
9
  title = "Llama2 70B Chatbot with EasyLLM"
10
- description = """This Space demonstrates model [Llama-2-70b-chat-hf](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) by Meta with EasyLLM (https://philschmid.github.io/easyllm)"""
 
 
11
  css = """.toast-wrap { display: none !important } """
12
 
13
  def predict(message, chatbot):
 
5
 
6
  huggingface.prompt_builder = build_llama2_prompt
7
 
8
+ system_message = """
9
+ You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe.
10
+ Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content.
11
+ Please ensure that your responses are socially unbiased and positive in nature.
12
+
13
+ If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct.
14
+ If you don't know the answer to a question, please don't share false information.
15
+ """
16
+
17
  title = "Llama2 70B Chatbot with EasyLLM"
18
+ description = """
19
+ This Space demonstrates model [Llama-2-70b-chat-hf](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) by Meta with EasyLLM (https://philschmid.github.io/easyllm)
20
+ """
21
  css = """.toast-wrap { display: none !important } """
22
 
23
  def predict(message, chatbot):