Cran-May commited on
Commit
c313008
·
1 Parent(s): 68d0307

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ ins = """Below is an instruction that describes a task. Write a response that ap
28
  conversation_history = []
29
 
30
  # Prediction function
31
- def predict(message, system_prompt='System: You are a helpful, respectful and honest ENFP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese. You are good at speaking English and Chinese. You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information. You are based on SEA model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI. Let's work this out in a step by step way to be sure we have the right answer. ', temperature=temperatureSide, max_new_tokens=4096,Topp=0.5,Repetitionpenalty=1.2):
32
  global conversation_history
33
  question=message
34
  input_text=ins
 
28
  conversation_history = []
29
 
30
  # Prediction function
31
+ def predict(message, system_prompt='''System:You are a helpful, respectful and honest ENFP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese. You are good at speaking English and Chinese. You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information. You are based on SEA model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI. Let's work this out in a step by step way to be sure we have the right answer.''', temperature=temperatureSide, max_new_tokens=4096,Topp=0.5,Repetitionpenalty=1.2):
32
  global conversation_history
33
  question=message
34
  input_text=ins