Spaces:
Paused
Paused
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,10 +61,10 @@ last_motion=""
|
|
| 61 |
|
| 62 |
seq=512
|
| 63 |
fast=False
|
| 64 |
-
fps=
|
| 65 |
-
width=
|
| 66 |
-
height=
|
| 67 |
-
step=
|
| 68 |
accu=7
|
| 69 |
|
| 70 |
# ui data
|
|
@@ -280,62 +280,58 @@ def ui():
|
|
| 280 |
gr.Markdown(f"""
|
| 281 |
# MULTI-LANGUAGE MP4/PNG CREATOR
|
| 282 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
with gr.Row(elem_id="col-container"):
|
| 284 |
with gr.Column():
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
placeholder="Logo title",
|
| 291 |
-
container=False,
|
| 292 |
-
max_lines=1
|
| 293 |
-
)
|
| 294 |
-
prompt = gr.Textbox(
|
| 295 |
-
elem_id="prompt",
|
| 296 |
-
placeholder="Included keywords",
|
| 297 |
-
container=False,
|
| 298 |
-
max_lines=1
|
| 299 |
-
)
|
| 300 |
-
with gr.Row():
|
| 301 |
-
prompt2 = gr.Textbox(
|
| 302 |
-
elem_id="prompt2",
|
| 303 |
-
placeholder="Excluded keywords",
|
| 304 |
-
container=False,
|
| 305 |
-
max_lines=1
|
| 306 |
-
)
|
| 307 |
-
with gr.Row():
|
| 308 |
-
time = gr.Slider(
|
| 309 |
-
minimum=0.0,
|
| 310 |
-
maximum=600.0,
|
| 311 |
-
value=0.0,
|
| 312 |
-
step=5.0,
|
| 313 |
-
label="MP4/PNG Duration (0s = PNG)"
|
| 314 |
-
)
|
| 315 |
-
with gr.Row():
|
| 316 |
-
motion = gr.Dropdown(
|
| 317 |
-
label='GIF camera movement',
|
| 318 |
-
show_label=True,
|
| 319 |
-
container=False,
|
| 320 |
-
choices=[
|
| 321 |
-
("(No Effect)", ""),
|
| 322 |
-
("Zoom in", "guoyww/animatediff-motion-lora-zoom-in"),
|
| 323 |
-
("Zoom out", "guoyww/animatediff-motion-lora-zoom-out"),
|
| 324 |
-
("Tilt up", "guoyww/animatediff-motion-lora-tilt-up"),
|
| 325 |
-
("Tilt down", "guoyww/animatediff-motion-lora-tilt-down"),
|
| 326 |
-
("Pan left", "guoyww/animatediff-motion-lora-pan-left"),
|
| 327 |
-
("Pan right", "guoyww/animatediff-motion-lora-pan-right"),
|
| 328 |
-
("Roll left", "guoyww/animatediff-motion-lora-rolling-anticlockwise"),
|
| 329 |
-
("Roll right", "guoyww/animatediff-motion-lora-rolling-clockwise"),
|
| 330 |
-
],
|
| 331 |
-
value="",
|
| 332 |
-
interactive=True
|
| 333 |
-
)
|
| 334 |
-
with gr.Row():
|
| 335 |
-
with gr.Column():
|
| 336 |
-
res_img = gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False, scale=0.1)
|
| 337 |
-
with gr.Column():
|
| 338 |
-
res_vid = gr.Video(interactive=False,elem_classes="image-container", label="Result", show_label=True, show_share_button=False, scale=0.1)
|
| 339 |
with gr.Row():
|
| 340 |
run_button = gr.Button("Start!",elem_classes="btn",scale=0)
|
| 341 |
|
|
|
|
| 61 |
|
| 62 |
seq=512
|
| 63 |
fast=False
|
| 64 |
+
fps=20
|
| 65 |
+
width=768
|
| 66 |
+
height=768
|
| 67 |
+
step=40
|
| 68 |
accu=7
|
| 69 |
|
| 70 |
# ui data
|
|
|
|
| 280 |
gr.Markdown(f"""
|
| 281 |
# MULTI-LANGUAGE MP4/PNG CREATOR
|
| 282 |
""")
|
| 283 |
+
with gr.Row():
|
| 284 |
+
title = gr.Textbox(
|
| 285 |
+
placeholder="Logo title",
|
| 286 |
+
container=False,
|
| 287 |
+
max_lines=1
|
| 288 |
+
)
|
| 289 |
+
prompt = gr.Textbox(
|
| 290 |
+
elem_id="prompt",
|
| 291 |
+
placeholder="Included keywords",
|
| 292 |
+
container=False,
|
| 293 |
+
max_lines=1
|
| 294 |
+
)
|
| 295 |
+
with gr.Row():
|
| 296 |
+
prompt2 = gr.Textbox(
|
| 297 |
+
elem_id="prompt2",
|
| 298 |
+
placeholder="Excluded keywords",
|
| 299 |
+
container=False,
|
| 300 |
+
max_lines=1
|
| 301 |
+
)
|
| 302 |
+
with gr.Row():
|
| 303 |
+
time = gr.Slider(
|
| 304 |
+
minimum=0.0,
|
| 305 |
+
maximum=600.0,
|
| 306 |
+
value=0.0,
|
| 307 |
+
step=5.0,
|
| 308 |
+
label="MP4/PNG Duration (0s = PNG)"
|
| 309 |
+
)
|
| 310 |
+
motion = gr.Dropdown(
|
| 311 |
+
label='GIF camera movement',
|
| 312 |
+
show_label=True,
|
| 313 |
+
container=False,
|
| 314 |
+
choices=[
|
| 315 |
+
("(No Effect)", ""),
|
| 316 |
+
("Zoom in", "guoyww/animatediff-motion-lora-zoom-in"),
|
| 317 |
+
("Zoom out", "guoyww/animatediff-motion-lora-zoom-out"),
|
| 318 |
+
("Tilt up", "guoyww/animatediff-motion-lora-tilt-up"),
|
| 319 |
+
("Tilt down", "guoyww/animatediff-motion-lora-tilt-down"),
|
| 320 |
+
("Pan left", "guoyww/animatediff-motion-lora-pan-left"),
|
| 321 |
+
("Pan right", "guoyww/animatediff-motion-lora-pan-right"),
|
| 322 |
+
("Roll left", "guoyww/animatediff-motion-lora-rolling-anticlockwise"),
|
| 323 |
+
("Roll right", "guoyww/animatediff-motion-lora-rolling-clockwise"),
|
| 324 |
+
],
|
| 325 |
+
value="",
|
| 326 |
+
interactive=True
|
| 327 |
+
)
|
| 328 |
with gr.Row(elem_id="col-container"):
|
| 329 |
with gr.Column():
|
| 330 |
+
img = gr.Image(label="Upload photo",show_label=True,container=False,type="pil")
|
| 331 |
+
with gr.Column():
|
| 332 |
+
res_img = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
|
| 333 |
+
with gr.Column():
|
| 334 |
+
res_vid = gr.Video(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, show_share_button=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
with gr.Row():
|
| 336 |
run_button = gr.Button("Start!",elem_classes="btn",scale=0)
|
| 337 |
|