Spaces:
Runtime error
Runtime error
Commit
·
c48a1b6
1
Parent(s):
fc006a5
Update app.py
Browse files
app.py
CHANGED
@@ -64,3 +64,17 @@ with gr.Blocks() as dialog_app:
|
|
64 |
send.click(get_reply, [inputs, style, state])
|
65 |
|
66 |
dialog_app.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
send.click(get_reply, [inputs, style, state])
|
65 |
|
66 |
dialog_app.launch()
|
67 |
+
|
68 |
+
# Save state
|
69 |
+
with open('./state.json', 'w') as f:
|
70 |
+
json.dump(state, f)
|
71 |
+
|
72 |
+
# Save chatbot
|
73 |
+
with open('./chatbot.json', 'w') as f:
|
74 |
+
json.dump(chatbot, f)
|
75 |
+
|
76 |
+
# Save cookies
|
77 |
+
with open('./cookies.json', 'w') as f:
|
78 |
+
json.dump(cookies, f)
|
79 |
+
|
80 |
+
# Save
|