From 3121f4788e8a4beb048961d00763fc855e0fe012 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 19 Jan 2023 15:05:42 -0300 Subject: [PATCH] Fix uploading chat log in --chat mode --- server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index b5121f63..8b920032 100644 --- a/server.py +++ b/server.py @@ -374,7 +374,10 @@ if args.chat or args.cai_chat: save_btn.click(save_history, inputs=[], outputs=[download]) upload.upload(load_history, [upload], []) - upload.upload(redraw_html, [name1, name2], [display1]) + if args.cai_chat: + upload.upload(redraw_html, [name1, name2], [display1]) + else: + upload.upload(lambda : history, [], [display1]) elif args.notebook: