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