peterpeter8585 commited on
Commit
4b105c6
1 Parent(s): af1f530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]: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]})