This commit is contained in:
parent
1f93b3d109
commit
3c8d5f1f9c
8
webui.py
8
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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue