mahiatlinux commited on
Commit
e3c6374
·
verified ·
1 Parent(s): 7c779c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,4 +1,3 @@
1
- {"from": "human", "value": "who are you"}
2
  import os
3
  from threading import Thread
4
  from typing import Iterator
@@ -44,7 +43,7 @@ def generate(
44
  ) -> Iterator[str]:
45
  conversation = []
46
  if system_prompt:
47
- conversation.append({"from": "human", "value": "You are an AI assistant."})
48
  for user, assistant in chat_history:
49
  conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
50
  conversation.append({"from": "human", "value": message})
 
 
1
  import os
2
  from threading import Thread
3
  from typing import Iterator
 
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})