Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def resize_image(image, output_size=(672, 384)):
|
|
| 125 |
return cropped_image
|
| 126 |
|
| 127 |
with gr.Blocks() as demo:
|
| 128 |
-
gr.Markdown('''# Community demo for Kandinsky 4.0''')
|
| 129 |
with gr.Row():
|
| 130 |
with gr.Column():
|
| 131 |
# image = gr.Image(label="Upload your image", type="pil")
|
|
@@ -149,8 +149,9 @@ with gr.Blocks() as demo:
|
|
| 149 |
choices=["1:1", "9:16", "16:9", "1:2", "2:1"],
|
| 150 |
value="16:9"
|
| 151 |
)
|
| 152 |
-
|
| 153 |
-
|
|
|
|
| 154 |
|
| 155 |
# with gr.Accordion("Advanced options", open=False):
|
| 156 |
# seed = gr.Slider(label="Seed", value=42, randomize=True, minimum=0, maximum=max_64_bit_int, step=1)
|
|
|
|
| 125 |
return cropped_image
|
| 126 |
|
| 127 |
with gr.Blocks() as demo:
|
| 128 |
+
gr.Markdown('''# Community demo for Kandinsky 4.0 Flash''')
|
| 129 |
with gr.Row():
|
| 130 |
with gr.Column():
|
| 131 |
# image = gr.Image(label="Upload your image", type="pil")
|
|
|
|
| 149 |
choices=["1:1", "9:16", "16:9", "1:2", "2:1"],
|
| 150 |
value="16:9"
|
| 151 |
)
|
| 152 |
+
with gr.Column():
|
| 153 |
+
enhance_button = gr.Button("Beautify prompt with GigaChat-Max")
|
| 154 |
+
generate_btn = gr.Button("Generate")
|
| 155 |
|
| 156 |
# with gr.Accordion("Advanced options", open=False):
|
| 157 |
# seed = gr.Slider(label="Seed", value=42, randomize=True, minimum=0, maximum=max_64_bit_int, step=1)
|