From d0f50167406b6d5d0b3c25b67228bdea929a47aa Mon Sep 17 00:00:00 2001 From: lvmin Date: Thu, 10 Aug 2023 14:45:21 -0700 Subject: [PATCH] i --- webui.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webui.py b/webui.py index b07587d9..3e36b9ff 100644 --- a/webui.py +++ b/webui.py @@ -23,16 +23,17 @@ def bot(history): with gr.Blocks() as demo: - chatbot = gr.Chatbot([], elem_id="chatbot", label='Fooocus').style(height=750) + chatbot = gr.Chatbot([], label='Fooocus', height=750) with gr.Row(): with gr.Column(scale=0.85): txt = gr.Textbox( show_label=False, - placeholder="Enter text and press enter, or upload an image", - ).style(container=False) + placeholder="Type prompt here.", + container=False + ) with gr.Column(scale=0.15, min_width=0): - btn = gr.UploadButton("Generate", file_types=["image", "video", "audio"]) + btn = gr.UploadButton("Generate", file_types=["image"]) txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then( bot, chatbot, chatbot