Spaces:
Runtime error
Runtime error
wannaphong
commited on
Commit
•
ed433b4
1
Parent(s):
80c63c5
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def generate(
|
|
25 |
temperature: float = 0.6,
|
26 |
top_p: float = 0.9
|
27 |
) -> Iterator[str]:
|
28 |
-
conversation = []
|
29 |
for user, assistant in chat_history:
|
30 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
31 |
conversation.append({"role": "user", "content": message})
|
|
|
25 |
temperature: float = 0.6,
|
26 |
top_p: float = 0.9
|
27 |
) -> Iterator[str]:
|
28 |
+
conversation = [{"role": "system", "content": "You are helpful assistant. Your answer are Thai language."}]
|
29 |
for user, assistant in chat_history:
|
30 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
31 |
conversation.append({"role": "user", "content": message})
|