mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i
This commit is contained in:
@@ -8,12 +8,10 @@ def generate_clicked(positive_prompt):
|
|||||||
|
|
||||||
block = gr.Blocks().queue()
|
block = gr.Blocks().queue()
|
||||||
with block:
|
with block:
|
||||||
with gr.Row():
|
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
prompt = gr.Textbox(label="Prompt", value='a handsome man in forest')
|
prompt = gr.Textbox(label="Prompt", value='a handsome man in forest')
|
||||||
run_button = gr.Button(label="Run")
|
run_button = gr.Button(label="Run")
|
||||||
with gr.Column():
|
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", height=700)
|
||||||
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
|
||||||
run_button.click(fn=generate_clicked, inputs=[prompt], outputs=[result_gallery])
|
run_button.click(fn=generate_clicked, inputs=[prompt], outputs=[result_gallery])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user