peterpeter8585 commited on
Commit
6ab9e66
Β·
verified Β·
1 Parent(s): ab5b56d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -240,11 +240,7 @@ def chat(message, history):
240
  ab.append({"role":"user","content":I[0]})
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,""
248
  try:
249
  # λŒ€ν™” 기둝을 LangChain memory에 반영
250
  # JSON ν˜•νƒœλ‘œ λ°˜ν™˜ μ‹œ νŒŒμ‹±
 
240
  ab.append({"role":"user","content":I[0]})
241
  ab.append({"role":"assistant","content":I[1]})
242
  ab.append({"role":"user","content":message})
243
+ raw = agent.invoke(ab)
 
 
 
 
244
  try:
245
  # λŒ€ν™” 기둝을 LangChain memory에 반영
246
  # JSON ν˜•νƒœλ‘œ λ°˜ν™˜ μ‹œ νŒŒμ‹±