Spaces:
Running on Zero
Running on Zero
Gradio 6 API: theme/css on launch(), drop show_download_button/show_api
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ EXAMPLES = [
|
|
| 182 |
["examples/case05_cats.mp4", "Remove the two white cats in pink clothes on both sides."],
|
| 183 |
]
|
| 184 |
|
| 185 |
-
with gr.Blocks(
|
| 186 |
with gr.Column(elem_id="col-container"):
|
| 187 |
gr.Markdown(
|
| 188 |
"""
|
|
@@ -235,7 +235,6 @@ result streams back while it is still being generated (2 flow-matching steps per
|
|
| 235 |
preview = gr.Image(
|
| 236 |
label="Live preview (latest generated frame)",
|
| 237 |
height=320,
|
| 238 |
-
show_download_button=False,
|
| 239 |
)
|
| 240 |
video_out = gr.Video(label="Edited video", height=320, autoplay=True)
|
| 241 |
status = gr.Markdown("")
|
|
@@ -256,4 +255,4 @@ result streams back while it is still being generated (2 flow-matching steps per
|
|
| 256 |
instruction.submit(edit_video, inputs=inputs, outputs=outputs, concurrency_limit=1)
|
| 257 |
|
| 258 |
if __name__ == "__main__":
|
| 259 |
-
demo.queue(max_size=12).launch(
|
|
|
|
| 182 |
["examples/case05_cats.mp4", "Remove the two white cats in pink clothes on both sides."],
|
| 183 |
]
|
| 184 |
|
| 185 |
+
with gr.Blocks() as demo:
|
| 186 |
with gr.Column(elem_id="col-container"):
|
| 187 |
gr.Markdown(
|
| 188 |
"""
|
|
|
|
| 235 |
preview = gr.Image(
|
| 236 |
label="Live preview (latest generated frame)",
|
| 237 |
height=320,
|
|
|
|
| 238 |
)
|
| 239 |
video_out = gr.Video(label="Edited video", height=320, autoplay=True)
|
| 240 |
status = gr.Markdown("")
|
|
|
|
| 255 |
instruction.submit(edit_video, inputs=inputs, outputs=outputs, concurrency_limit=1)
|
| 256 |
|
| 257 |
if __name__ == "__main__":
|
| 258 |
+
demo.queue(max_size=12).launch(theme=gr.themes.Citrus(), css=CSS)
|