Cachoups commited on
Commit
55d391a
·
verified ·
1 Parent(s): 3ab6e13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -108,9 +108,7 @@ def respond(
108
  for val in history:
109
  if val[0]:
110
  messages.append({"role": "user", "content": val[0]})
111
- if val[1]:
112
- messages.append({"role": "assistant", "content": val[1]})
113
- res = ra(val[1])
114
  system_message = f"""
115
  You are an expert in League of Legends (LoL) lore. You will only answer questions related to the champions and their stories within the game.
116
 
@@ -126,6 +124,8 @@ def respond(
126
  Answer:
127
 
128
  """
 
 
129
 
130
  messages = [{"role": "system", "content": system_message}]
131
 
 
108
  for val in history:
109
  if val[0]:
110
  messages.append({"role": "user", "content": val[0]})
111
+ res = ra(val[0])
 
 
112
  system_message = f"""
113
  You are an expert in League of Legends (LoL) lore. You will only answer questions related to the champions and their stories within the game.
114
 
 
124
  Answer:
125
 
126
  """
127
+ if val[1]:
128
+ messages.append({"role": "assistant", "content": val[1]})
129
 
130
  messages = [{"role": "system", "content": system_message}]
131