This commit is contained in:
lvmin
2023-08-10 19:15:22 -07:00
parent aa4396e670
commit ade641f0e7
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ with block:
with gr.Column():
prompt = gr.Textbox(label="Prompt", value='a handsome man in forest')
run_button = gr.Button(label="Run")
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", height='auto')
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery",
object_fit='contain', height=768)
run_button.click(fn=generate_clicked, inputs=[prompt], outputs=[result_gallery])