ysharma HF staff commited on
Commit
c71dfe1
·
1 Parent(s): d5139bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ def predict(message, chatbot, system_prompt="", temperature=0.9, max_new_tokens=
40
  if system_prompt != "":
41
  system_message = system_prompt
42
  else:
43
- system_message = system_message
44
 
45
  temperature = float(temperature)
46
  if temperature < 1e-2:
@@ -103,7 +103,7 @@ def predict_batch(message, chatbot, system_prompt="", temperature=0.9, max_new_t
103
  if system_prompt != "":
104
  system_message = system_prompt
105
  else:
106
- system_message = system_message
107
 
108
  temperature = float(temperature)
109
  if temperature < 1e-2:
 
40
  if system_prompt != "":
41
  system_message = system_prompt
42
  else:
43
+ 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."
44
 
45
  temperature = float(temperature)
46
  if temperature < 1e-2:
 
103
  if system_prompt != "":
104
  system_message = system_prompt
105
  else:
106
+ 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."
107
 
108
  temperature = float(temperature)
109
  if temperature < 1e-2: