Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,6 +242,8 @@ def chat(message, history):
|
|
| 242 |
# AI 응답을 memory에 추가
|
| 243 |
except Exception as e:
|
| 244 |
text = str(raw)
|
|
|
|
|
|
|
| 245 |
|
| 246 |
history = history + [(message, text)]
|
| 247 |
return history, history, ""
|
|
|
|
| 242 |
# AI 응답을 memory에 추가
|
| 243 |
except Exception as e:
|
| 244 |
text = str(raw)
|
| 245 |
+
text=json.loads(text)
|
| 246 |
+
text=text["output"]
|
| 247 |
|
| 248 |
history = history + [(message, text)]
|
| 249 |
return history, history, ""
|