Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,8 +327,8 @@ if __name__ == "__main__":
|
|
| 327 |
|
| 328 |
with gr.Column():
|
| 329 |
gallery = gr.Gallery(
|
| 330 |
-
label="Generated images", show_label=False, elem_id="gallery"
|
| 331 |
-
|
| 332 |
|
| 333 |
run_button.click(fn=run_grounded_sam, inputs=[
|
| 334 |
input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold, iou_threshold, inpaint_mode], outputs=gallery)
|
|
|
|
| 327 |
|
| 328 |
with gr.Column():
|
| 329 |
gallery = gr.Gallery(
|
| 330 |
+
label="Generated images", show_label=False, elem_id="gallery",
|
| 331 |
+
preview=True, object_fit="scale-down")
|
| 332 |
|
| 333 |
run_button.click(fn=run_grounded_sam, inputs=[
|
| 334 |
input_image, text_prompt, task_type, inpaint_prompt, box_threshold, text_threshold, iou_threshold, inpaint_mode], outputs=gallery)
|