Spaces:
Running
on
Zero
Running
on
Zero
format
Browse files
app.py
CHANGED
@@ -633,7 +633,10 @@ with block:
|
|
633 |
with gr.Row():
|
634 |
with gr.Column(scale=1):
|
635 |
prompt = gr.Textbox(
|
636 |
-
value="a wonderful elf.",
|
|
|
|
|
|
|
637 |
)
|
638 |
negative_prompt = gr.Text(
|
639 |
label="Negative Prompt",
|
@@ -647,10 +650,7 @@ with block:
|
|
647 |
|
648 |
with gr.Accordion("More input params", open=False, elem_id="accordion1"):
|
649 |
with gr.Group():
|
650 |
-
seed = gr.Textbox(
|
651 |
-
label="Seed: ",
|
652 |
-
value=561793204,
|
653 |
-
)
|
654 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
655 |
|
656 |
with gr.Group():
|
@@ -676,12 +676,8 @@ with block:
|
|
676 |
|
677 |
with gr.Column(scale=7):
|
678 |
output_video = gr.Video(label="Output Video", width=384, height=256)
|
679 |
-
# output_video = gr.Image(label="Output Video",
|
680 |
-
# height=256,
|
681 |
-
# width=384,)
|
682 |
|
683 |
with gr.Row():
|
684 |
-
|
685 |
example = gr.Examples(
|
686 |
label="Input Example",
|
687 |
examples=image_examples,
|
@@ -702,11 +698,15 @@ with block:
|
|
702 |
add_drag_button.click(add_drag, tracking_points_var, tracking_points_var)
|
703 |
|
704 |
delete_last_drag_button.click(
|
705 |
-
delete_last_drag,
|
|
|
|
|
706 |
)
|
707 |
|
708 |
delete_last_step_button.click(
|
709 |
-
delete_last_step,
|
|
|
|
|
710 |
)
|
711 |
|
712 |
reset_button.click(
|
@@ -716,7 +716,9 @@ with block:
|
|
716 |
)
|
717 |
|
718 |
input_image.select(
|
719 |
-
add_tracking_points,
|
|
|
|
|
720 |
)
|
721 |
|
722 |
run_button.click(
|
|
|
633 |
with gr.Row():
|
634 |
with gr.Column(scale=1):
|
635 |
prompt = gr.Textbox(
|
636 |
+
value="a wonderful elf.",
|
637 |
+
label="Prompt (highly-recommended)",
|
638 |
+
interactive=True,
|
639 |
+
visible=True,
|
640 |
)
|
641 |
negative_prompt = gr.Text(
|
642 |
label="Negative Prompt",
|
|
|
650 |
|
651 |
with gr.Accordion("More input params", open=False, elem_id="accordion1"):
|
652 |
with gr.Group():
|
653 |
+
seed = gr.Textbox(label="Seed: ", value=561793204)
|
|
|
|
|
|
|
654 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
655 |
|
656 |
with gr.Group():
|
|
|
676 |
|
677 |
with gr.Column(scale=7):
|
678 |
output_video = gr.Video(label="Output Video", width=384, height=256)
|
|
|
|
|
|
|
679 |
|
680 |
with gr.Row():
|
|
|
681 |
example = gr.Examples(
|
682 |
label="Input Example",
|
683 |
examples=image_examples,
|
|
|
698 |
add_drag_button.click(add_drag, tracking_points_var, tracking_points_var)
|
699 |
|
700 |
delete_last_drag_button.click(
|
701 |
+
delete_last_drag,
|
702 |
+
[tracking_points_var, first_frame_path_var, drag_mode],
|
703 |
+
[tracking_points_var, input_image],
|
704 |
)
|
705 |
|
706 |
delete_last_step_button.click(
|
707 |
+
delete_last_step,
|
708 |
+
[tracking_points_var, first_frame_path_var, drag_mode],
|
709 |
+
[tracking_points_var, input_image],
|
710 |
)
|
711 |
|
712 |
reset_button.click(
|
|
|
716 |
)
|
717 |
|
718 |
input_image.select(
|
719 |
+
add_tracking_points,
|
720 |
+
[tracking_points_var, first_frame_path_var, drag_mode],
|
721 |
+
[tracking_points_var, input_image],
|
722 |
)
|
723 |
|
724 |
run_button.click(
|