Spaces:
Running
Running
Change image format of gallery
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def split_image(image, parts, direction='horizontal'):
|
|
41 |
|
42 |
|
43 |
css = "#file {height: 10vh;}"
|
44 |
-
result_image = gr.Gallery(height="45vh")
|
45 |
with gr.Blocks(css=css) as demo:
|
46 |
with gr.Tabs():
|
47 |
with gr.Tab(label="Split") as tab_split:
|
@@ -56,7 +56,7 @@ with gr.Blocks(css=css) as demo:
|
|
56 |
with gr.Row():
|
57 |
with gr.Column():
|
58 |
merge_files = gr.File(file_count="multiple", elem_id="file")
|
59 |
-
merge_preview = gr.Gallery(label="prevew", height="35vh")
|
60 |
with gr.Column():
|
61 |
merge_direction = gr.Radio(label="Direction", choices=["vertical", "horizontal"], value="vertical", interactive=True)
|
62 |
merge_b_resize = gr.Checkbox(label="Resize to first image", value=True, interactive=True)
|
|
|
41 |
|
42 |
|
43 |
css = "#file {height: 10vh;}"
|
44 |
+
result_image = gr.Gallery(height="45vh", format="png")
|
45 |
with gr.Blocks(css=css) as demo:
|
46 |
with gr.Tabs():
|
47 |
with gr.Tab(label="Split") as tab_split:
|
|
|
56 |
with gr.Row():
|
57 |
with gr.Column():
|
58 |
merge_files = gr.File(file_count="multiple", elem_id="file")
|
59 |
+
merge_preview = gr.Gallery(label="prevew", height="35vh", format="png")
|
60 |
with gr.Column():
|
61 |
merge_direction = gr.Radio(label="Direction", choices=["vertical", "horizontal"], value="vertical", interactive=True)
|
62 |
merge_b_resize = gr.Checkbox(label="Resize to first image", value=True, interactive=True)
|