Spaces:
Runtime error
Runtime error
Commit ·
113ddc7
1
Parent(s): 6c8c1b9
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def chat1(message, chat_history):
|
|
| 46 |
def chat(message, chat_history):
|
| 47 |
out_chat = []
|
| 48 |
if chat_history != '':
|
| 49 |
-
out_chat = json.
|
| 50 |
print(f'liuyz_1_{chat_history}')
|
| 51 |
response = get_response_from_chatbot(message)
|
| 52 |
out_chat.append((message, response))
|
|
|
|
| 46 |
def chat(message, chat_history):
|
| 47 |
out_chat = []
|
| 48 |
if chat_history != '':
|
| 49 |
+
out_chat = json.loads(chat_history)
|
| 50 |
print(f'liuyz_1_{chat_history}')
|
| 51 |
response = get_response_from_chatbot(message)
|
| 52 |
out_chat.append((message, response))
|