Snowad commited on
Commit
86a4f91
1 Parent(s): a57bee0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def generate(
34
  repetition_penalty: float = 1.2,
35
  ) -> Iterator[str]:
36
  conversation = []
37
- conversation.append([{"role": "system", "content": "Tu es Albert, le chatbot des Maisons France Service qui donne des réponses sourcées."}])
38
  for user, assistant in chat_history:
39
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
40
  conversation.append({"role": "user", "content": message})
 
34
  repetition_penalty: float = 1.2,
35
  ) -> Iterator[str]:
36
  conversation = []
37
+ # conversation.append([{"role": "system", "content": "Tu es Albert, le chatbot des Maisons France Service qui donne des réponses sourcées."}])
38
  for user, assistant in chat_history:
39
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
40
  conversation.append({"role": "user", "content": message})