peterpeter8585 commited on
Commit
ab5b56d
Β·
verified Β·
1 Parent(s): 49a60b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -241,7 +241,7 @@ def chat(message, history):
241
  ab.append({"role":"assistant","content":I[1]})
242
  ab.append({"role":"user","content":message})
243
  try:
244
- raw = agent.invoke(ab)["output"]
245
  except Exception as e:
246
  history=history+[(message,f"였λ₯˜!λ„ˆλ¬΄ λ§Žμ€ λŒ€ν™”κ°€ μ‚¬μš©λ˜μ—ˆμŠ΅λ‹ˆλ‹€.내일 λ‹€μ‹œ μ‹œλ„ν•˜μ‹­μ‹œμ˜€!(μ„ μ°©μˆœ λŒ€ν™” 50개!) 였λ₯˜ λ©”μ‹œμ§€:{e}")]
247
  return history,history,""
 
241
  ab.append({"role":"assistant","content":I[1]})
242
  ab.append({"role":"user","content":message})
243
  try:
244
+ raw = agent.invoke(ab)
245
  except Exception as e:
246
  history=history+[(message,f"였λ₯˜!λ„ˆλ¬΄ λ§Žμ€ λŒ€ν™”κ°€ μ‚¬μš©λ˜μ—ˆμŠ΅λ‹ˆλ‹€.내일 λ‹€μ‹œ μ‹œλ„ν•˜μ‹­μ‹œμ˜€!(μ„ μ°©μˆœ λŒ€ν™” 50개!) 였λ₯˜ λ©”μ‹œμ§€:{e}")]
247
  return history,history,""