Spaces:
Running
on
Zero
Running
on
Zero
edit columns and rows
Browse files
app.py
CHANGED
@@ -129,30 +129,50 @@ with gr.Blocks() as demo:
|
|
129 |
with gr.Row():
|
130 |
with gr.Column():
|
131 |
# image = gr.Image(label="Upload your image", type="pil")
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
134 |
label="Prompt",
|
135 |
show_label=False,
|
136 |
max_lines=5,
|
137 |
placeholder="Enter your prompt",
|
138 |
container=False,
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
#
|
143 |
-
|
144 |
-
#
|
145 |
-
|
146 |
-
#
|
147 |
-
|
|
|
|
|
|
|
148 |
label="Aspect ratio",
|
149 |
choices=["16:9 (672x384)", "9:16 (384x672)", "1:1 (512x512)", "1:2 (352x736)", "2:1 (736x352)"],
|
150 |
value="16:9 (672x384)"
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
# with gr.Accordion("Advanced options", open=False):
|
158 |
# seed = gr.Slider(label="Seed", value=42, randomize=True, minimum=0, maximum=max_64_bit_int, step=1)
|
|
|
129 |
with gr.Row():
|
130 |
with gr.Column():
|
131 |
# image = gr.Image(label="Upload your image", type="pil")
|
132 |
+
# видео по центру
|
133 |
+
video = gr.Video()
|
134 |
+
with gr.Row():
|
135 |
+
# левая часть под видео - текст
|
136 |
+
with gr.Column():
|
137 |
+
prompt = gr.Text(
|
138 |
label="Prompt",
|
139 |
show_label=False,
|
140 |
max_lines=5,
|
141 |
placeholder="Enter your prompt",
|
142 |
container=False,
|
143 |
+
)
|
144 |
+
with gr.Row():
|
145 |
+
with gr.Column():
|
146 |
+
# под текстом, слева
|
147 |
+
gr.Markdown("Beautify prompt with [GigaChat-Max](https://giga.chat)")
|
148 |
+
#TODO правильно колонки расположились?
|
149 |
+
with gr.Column():
|
150 |
+
# под текстом, справа
|
151 |
+
enhance_button = gr.Button("Beautify prompt")
|
152 |
+
# правая часть под видео - Aspect ratio
|
153 |
+
with gr.Column():
|
154 |
+
aspect_ratio = gr.Dropdown(
|
155 |
label="Aspect ratio",
|
156 |
choices=["16:9 (672x384)", "9:16 (384x672)", "1:1 (512x512)", "1:2 (352x736)", "2:1 (736x352)"],
|
157 |
value="16:9 (672x384)"
|
158 |
+
)
|
159 |
+
generate_btn = gr.Button("Generate Video")
|
160 |
+
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
# with gr.Row():
|
165 |
+
# # gr.Markdown(
|
166 |
+
# # "✨Upon pressing the enhanced prompt button, we will use [GigaChat Model](https://github.com/THUDM/GLM-4) to polish the prompt and overwrite the original one."
|
167 |
+
# # )
|
168 |
+
# aspect_ratio = gr.Dropdown(
|
169 |
+
# label="Aspect ratio",
|
170 |
+
# choices=["16:9 (672x384)", "9:16 (384x672)", "1:1 (512x512)", "1:2 (352x736)", "2:1 (736x352)"],
|
171 |
+
# value="16:9 (672x384)"
|
172 |
+
# )
|
173 |
+
# with gr.Column():
|
174 |
+
# enhance_button = gr.Button("Beautify prompt with [GigaChat-Max](https://giga.chat)")
|
175 |
+
# generate_btn = gr.Button("Generate Video")
|
176 |
|
177 |
# with gr.Accordion("Advanced options", open=False):
|
178 |
# seed = gr.Slider(label="Seed", value=42, randomize=True, minimum=0, maximum=max_64_bit_int, step=1)
|