Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,6 +196,11 @@ CSS = """
|
|
| 196 |
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
| 197 |
gap: 12px;
|
| 198 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
.tl-grid video {
|
| 200 |
width: 100%;
|
| 201 |
height: 120px;
|
|
@@ -245,17 +250,18 @@ with gr.Blocks(css=CSS, title="StitchMaster") as demo:
|
|
| 245 |
seed = gr.Number(value=0, precision=0, label="Seed (0 = random)")
|
| 246 |
|
| 247 |
with gr.Row():
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
|
|
|
| 259 |
|
| 260 |
# keep start/end dropdowns up to date based on which slots have images
|
| 261 |
for comp in img_comps:
|
|
|
|
| 196 |
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
| 197 |
gap: 12px;
|
| 198 |
}
|
| 199 |
+
.stitch-box {
|
| 200 |
+
background-color: #f0f4ff; /* pick any color you like */
|
| 201 |
+
border-radius: 12px;
|
| 202 |
+
padding: 16px;
|
| 203 |
+
}
|
| 204 |
.tl-grid video {
|
| 205 |
width: 100%;
|
| 206 |
height: 120px;
|
|
|
|
| 250 |
seed = gr.Number(value=0, precision=0, label="Seed (0 = random)")
|
| 251 |
|
| 252 |
with gr.Row():
|
| 253 |
+
with gr.Column(scale=1, min_width=420, elem_classes=["stitch-box"]): # 👈 added class
|
| 254 |
+
start_dd = gr.Dropdown(label="Start frame", choices=[], interactive=True)
|
| 255 |
+
end_dd = gr.Dropdown(label="End frame", choices=[], interactive=True)
|
| 256 |
+
prompt = gr.Textbox(
|
| 257 |
+
placeholder="Describe the transition between the selected start and end frames…",
|
| 258 |
+
lines=3, label="Prompt", elem_classes=["rounded"]
|
| 259 |
+
)
|
| 260 |
+
run_btn = gr.Button("Generate", elem_classes=["pill"])
|
| 261 |
+
add_tl_btn = gr.Button("Add to timeline", elem_classes=["pill"])
|
| 262 |
+
with gr.Column(scale=1, min_width=420):
|
| 263 |
+
preview = gr.Video(label="Video output", interactive=False)
|
| 264 |
+
|
| 265 |
|
| 266 |
# keep start/end dropdowns up to date based on which slots have images
|
| 267 |
for comp in img_comps:
|