peterpeter8585 commited on
Commit
ac550b6
Β·
verified Β·
1 Parent(s): aaead94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ agent= AgentExecutor(agent=agent, tools=tools,memory=mem)
122
  # ──────────────────────────────
123
  def chat(message, history):
124
  try:
125
- response = agent.run(message)
126
  except Exception as e:
127
  response = f"⚠️ 였λ₯˜: {e}"
128
  history = history + [(message, response)]
 
122
  # ──────────────────────────────
123
  def chat(message, history):
124
  try:
125
+ response = agent.invoke(message)
126
  except Exception as e:
127
  response = f"⚠️ 였λ₯˜: {e}"
128
  history = history + [(message, response)]