Spaces:
Running
on
T4
Running
on
T4
liuyizhang
commited on
Commit
•
648a7f1
1
Parent(s):
291ae92
update app.py
Browse files
app.py
CHANGED
@@ -434,9 +434,9 @@ def concatenate_images_vertical(image1, image2):
|
|
434 |
|
435 |
return new_image
|
436 |
|
437 |
-
def relate_anything(input_image_mask, k):
|
438 |
-
logger.info(f'relate_anything_1_')
|
439 |
input_image = input_image_mask['image']
|
|
|
440 |
w, h = input_image.size
|
441 |
max_edge = 1500
|
442 |
if w > max_edge or h > max_edge:
|
@@ -734,7 +734,7 @@ if __name__ == "__main__":
|
|
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, columns=5, object_fit="scale-down")
|
740 |
|
|
|
434 |
|
435 |
return new_image
|
436 |
|
437 |
+
def relate_anything(input_image_mask, k):
|
|
|
438 |
input_image = input_image_mask['image']
|
439 |
+
logger.info(f'relate_anything_1_{input_image.size}_')
|
440 |
w, h = input_image.size
|
441 |
max_edge = 1500
|
442 |
if w > max_edge or h > max_edge:
|
|
|
734 |
|
735 |
with gr.Column():
|
736 |
gsa_gallery = gr.Gallery(label="result images", show_label=True, elem_id="gsa_allery", visible=True
|
737 |
+
).style(preview=True, 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, columns=5, object_fit="scale-down")
|
740 |
|