Spaces:
Running
Running
fix display size optimal for square image
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ example_instructions = [
|
|
| 58 |
]
|
| 59 |
|
| 60 |
def main():
|
| 61 |
-
resolution =
|
| 62 |
cfg = {"resolution": resolution}
|
| 63 |
model_t2i = SeedT2ICaller(cfg)
|
| 64 |
|
|
@@ -122,7 +122,7 @@ def main():
|
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
input_image = gr.Image(label="Input Image", type="pil", interactive=True,
|
| 125 |
-
height=resolution, width=resolution)
|
| 126 |
edited_image = gr.Image(label="Edited Image", type="pil", interactive=False,
|
| 127 |
height=resolution, width=resolution)
|
| 128 |
|
|
|
|
| 58 |
]
|
| 59 |
|
| 60 |
def main():
|
| 61 |
+
resolution = 728
|
| 62 |
cfg = {"resolution": resolution}
|
| 63 |
model_t2i = SeedT2ICaller(cfg)
|
| 64 |
|
|
|
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
input_image = gr.Image(label="Input Image", type="pil", interactive=True,
|
| 125 |
+
height=resolution + 36, width=resolution)
|
| 126 |
edited_image = gr.Image(label="Edited Image", type="pil", interactive=False,
|
| 127 |
height=resolution, width=resolution)
|
| 128 |
|