Spaces:
Sleeping
Sleeping
alfredplpl
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def chat_llama3_8b(message: str,
|
|
66 |
"""
|
67 |
global model
|
68 |
conversation = []
|
69 |
-
conversation.append({"role": "system", "content": "
|
70 |
for user, assistant in history:
|
71 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
72 |
conversation.append({"role": "user", "content": message})
|
|
|
66 |
"""
|
67 |
global model
|
68 |
conversation = []
|
69 |
+
conversation.append({"role": "system", "content": "あなたは優秀なアシスタントです。"})
|
70 |
for user, assistant in history:
|
71 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
72 |
conversation.append({"role": "user", "content": message})
|