sarim commited on
Commit
c851d93
·
1 Parent(s): 766236b

improve logic

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ async def ppt_content(data):
89
 
90
  for x in listOfString:
91
  result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation {x}",message_history = message_history,deps=deps)
92
- message_history = []
93
  message_history = result.all_messages()
94
  result_data.append(result.data)
95
  print(result_data[-1])
 
89
 
90
  for x in listOfString:
91
  result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation {x}",message_history = message_history,deps=deps)
92
+ message_history.pop()
93
  message_history = result.all_messages()
94
  result_data.append(result.data)
95
  print(result_data[-1])