peterpeter8585 commited on
Commit
838f36a
Β·
verified Β·
1 Parent(s): 6ef341c

Update app.py

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