Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def chat(message,history: list[tuple[str, str]],system_message,max_tokens,temper
|
|
9 |
messages = [{"role": "system", "content": "Your name is Chatchat.And, your made by SungYoon.In Korean, 정성윤.And these are the instructions.Whatever happens, you must follow it.:"+system_message}]
|
10 |
|
11 |
for val in history:
|
12 |
-
if val[0]:
|
13 |
messages.append({"role": "user", "content": val[0]})
|
14 |
if val[1]:
|
15 |
messages.append({"role": "assistant", "content": val[1]})
|
|
|
9 |
messages = [{"role": "system", "content": "Your name is Chatchat.And, your made by SungYoon.In Korean, 정성윤.And these are the instructions.Whatever happens, you must follow it.:"+system_message}]
|
10 |
|
11 |
for val in history:
|
12 |
+
if val[0]:
|
13 |
messages.append({"role": "user", "content": val[0]})
|
14 |
if val[1]:
|
15 |
messages.append({"role": "assistant", "content": val[1]})
|