DeFactOfficial commited on
Commit
d2e74ff
·
verified ·
1 Parent(s): 4692341

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -120,14 +120,14 @@ IMPORTANT: Your response must be a valid JSON object with the following structur
120
  markdown_output += step_md
121
  #yield markdown_output # Update the output incrementally
122
 
123
- messages.append({"role": "assistant", "content": json.dumps(step_data.model_dump())})
124
 
125
  if step_data.next_action == 'final_answer' and step_count < 15:
126
  messages.append({"role": "user", "content": "Please continue your analysis with at least 5 more steps before providing the final answer."})
127
- elif step_data.next_action == 'final_answer':Please
128
  break
129
  elif step_data.next_action == 'reflect' or step_count % 3 == 0:
130
- messages.append({"role": "user", "content": " perform a detailed self-reflection on your reasoning so far."})
131
  else:
132
  messages.append({"role": "user", "content": "Please continue with the next step in your analysis."})
133
 
 
120
  markdown_output += step_md
121
  #yield markdown_output # Update the output incrementally
122
 
123
+ messages.append({"role": "assistant", "content": json.dumps(step_data.model_dump(), indent=2)})
124
 
125
  if step_data.next_action == 'final_answer' and step_count < 15:
126
  messages.append({"role": "user", "content": "Please continue your analysis with at least 5 more steps before providing the final answer."})
127
+ elif step_data.next_action == 'final_answer':
128
  break
129
  elif step_data.next_action == 'reflect' or step_count % 3 == 0:
130
+ messages.append({"role": "user", "content": "Please perform a detailed self-reflection on your reasoning so far."})
131
  else:
132
  messages.append({"role": "user", "content": "Please continue with the next step in your analysis."})
133