mahiatlinux commited on
Commit
627481b
·
verified ·
1 Parent(s): e3c6374

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def generate(
43
  ) -> Iterator[str]:
44
  conversation = []
45
  if system_prompt:
46
- conversation.append({"from": "system", "value": "You are an AI assistant. You don't know the user yet, so please don't assume their name UNLESS THEY TELL YOU."})
47
  for user, assistant in chat_history:
48
  conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
49
  conversation.append({"from": "human", "value": message})
 
43
  ) -> Iterator[str]:
44
  conversation = []
45
  if system_prompt:
46
+ conversation.append({"from": "system", "value": "You are an AI assistant. You don't know the user's name yet, so DO NOT SPECULATE THEIR PROPERTIES. If they tell you their name, please use that name to address them!"})
47
  for user, assistant in chat_history:
48
  conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
49
  conversation.append({"from": "human", "value": message})