bstraehle commited on
Commit
2464fda
·
verified ·
1 Parent(s): 05d38b6

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +3 -1
multi_agent.py CHANGED
@@ -132,7 +132,9 @@ def run_multi_agent(llm, num_turns):
132
  turn_num = 0
133
 
134
  for chat in chat_history:
135
- result += f"{turn_num}: {chat.get('content')}<br />{board_svgs[turn_num]}<br />\n***\n<br />"
 
 
136
  turn_num += 1
137
 
138
  return result
 
132
  turn_num = 0
133
 
134
  for chat in chat_history:
135
+ result += f"{turn_num}: {chat.get('content')}<br />"
136
+ if turn_num > 0:
137
+ result += f"{board_svgs[turn_num - 1]}<br />\n***\n<br />"
138
  turn_num += 1
139
 
140
  return result