Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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μ λ°μ
|