Update app.py
Browse files
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})
|