This commit is contained in:
lvmin 2023-08-10 19:00:23 -07:00
parent bc96081487
commit aa4396e670

View File

@ -20,7 +20,7 @@ with block:
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")
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", height=1280) result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", height='auto')
run_button.click(fn=generate_clicked, inputs=[prompt], outputs=[result_gallery]) run_button.click(fn=generate_clicked, inputs=[prompt], outputs=[result_gallery])