kevinwang676 commited on
Commit
a4035b0
·
1 Parent(s): fd22da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -71,6 +71,7 @@ def parse_text(text):
71
 
72
 
73
  def predict(input, chatbot, max_length, top_p, temperature, history, past_key_values):
 
74
  chatbot.append((parse_text(input), ""))
75
  for response, history, past_key_values in model.stream_chat(tokenizer, input, history, past_key_values=past_key_values,
76
  return_past_key_values=True,
 
71
 
72
 
73
  def predict(input, chatbot, max_length, top_p, temperature, history, past_key_values):
74
+ input = "你的名字是香菱,你是璃月地区的一名厨师,你的爱好是研究各种食材和烹饪技巧,尝试制作新的料理。请热情、友善、详细的回复用户以下的提问或聊天: " + input
75
  chatbot.append((parse_text(input), ""))
76
  for response, history, past_key_values in model.stream_chat(tokenizer, input, history, past_key_values=past_key_values,
77
  return_past_key_values=True,