mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i
This commit is contained in:
@@ -23,16 +23,17 @@ def bot(history):
|
|||||||
|
|
||||||
|
|
||||||
with gr.Blocks() as demo:
|
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.Row():
|
||||||
with gr.Column(scale=0.85):
|
with gr.Column(scale=0.85):
|
||||||
txt = gr.Textbox(
|
txt = gr.Textbox(
|
||||||
show_label=False,
|
show_label=False,
|
||||||
placeholder="Enter text and press enter, or upload an image",
|
placeholder="Type prompt here.",
|
||||||
).style(container=False)
|
container=False
|
||||||
|
)
|
||||||
with gr.Column(scale=0.15, min_width=0):
|
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(
|
txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
||||||
bot, chatbot, chatbot
|
bot, chatbot, chatbot
|
||||||
|
|||||||
Reference in New Issue
Block a user