liuyizhang commited on
Commit
d6ec0f9
1 Parent(s): f1a3abf

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -733,10 +733,10 @@ if __name__ == "__main__":
733
  remove_mask_extend = gr.Textbox(label="remove_mask_extend", value='10')
734
 
735
  with gr.Column():
736
- gsa_gallery = gr.Gallery(label="result images", show_label=True, elem_id="gsa_allery"
737
- ).style(grid=[2], full_width=True, full_height=True, visible=True)
738
- ram_gallery = gr.Gallery(label="Your Result", show_label=True, elem_id="ram_gallery"
739
- ).style(preview=True, object_fit="scale-down", visible=False)
740
 
741
  run_button.click(fn=run_anything_task, inputs=[
742
  input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold, iou_threshold, inpaint_mode, mask_source_radio, remove_mode, remove_mask_extend, num_relation], outputs=[gsa_gallery, gsa_gallery], show_progress=True, queue=True)
 
733
  remove_mask_extend = gr.Textbox(label="remove_mask_extend", value='10')
734
 
735
  with gr.Column():
736
+ gsa_gallery = gr.Gallery(label="result images", show_label=True, elem_id="gsa_allery", visible=True
737
+ ).style(grid=[2], full_width=True, full_height=True)
738
+ ram_gallery = gr.Gallery(label="Your Result", show_label=True, elem_id="ram_gallery", visible=False
739
+ ).style(preview=True, full_width=True,)
740
 
741
  run_button.click(fn=run_anything_task, inputs=[
742
  input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold, iou_threshold, inpaint_mode, mask_source_radio, remove_mode, remove_mask_extend, num_relation], outputs=[gsa_gallery, gsa_gallery], show_progress=True, queue=True)