From 3c8d5f1f9c64591c07c732f8253e6afb5dcd4962 Mon Sep 17 00:00:00 2001 From: lvmin Date: Thu, 10 Aug 2023 14:59:46 -0700 Subject: [PATCH] i --- webui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webui.py b/webui.py index be7bd179..83d5c78a 100644 --- a/webui.py +++ b/webui.py @@ -9,16 +9,16 @@ def add_text(history, text): def add_file(history, file): - history = history + [(('./outputs/a.png',), None)] + history = history + [(('./outputs/a.png',), ('./outputs/a.png', './outputs/a.png'))] return history def bot(history): response = "**That's cool!**" - history[-1][1] = "" + # history[-1][1] = "" for character in response: - history[-1][1] += character - time.sleep(0.05) + # history[-1][1] += character + # time.sleep(0.05) yield history