Spaces:
Running
on
Zero
Running
on
Zero
envs
Browse files
app.py
CHANGED
@@ -124,6 +124,7 @@ image_examples = [
|
|
124 |
"",
|
125 |
json.load(open("__asset__/trajs/object/turtle-1.json")),
|
126 |
"__asset__/images/object/turtle-1.jpg",
|
|
|
127 |
],
|
128 |
|
129 |
["__asset__/images/object/rose-1.jpg",
|
@@ -521,7 +522,7 @@ with block as demo:
|
|
521 |
with gr.Column(scale=6):
|
522 |
input_image = gr.Image(label="Input Image",
|
523 |
interactive=True,
|
524 |
-
height=
|
525 |
width=384,)
|
526 |
with gr.Column(scale=6):
|
527 |
output_image = gr.Image(label="Motion Path",
|
@@ -577,13 +578,13 @@ with block as demo:
|
|
577 |
with gr.Row():
|
578 |
def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
|
579 |
|
580 |
-
return input_image, prompt, drag_mode, seed, personalized
|
581 |
|
582 |
example = gr.Examples(
|
583 |
label="Input Example",
|
584 |
examples=image_examples,
|
585 |
inputs=[input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path],
|
586 |
-
outputs=[input_image, prompt, drag_mode, seed, personalized
|
587 |
fn=process_example,
|
588 |
run_on_click=True,
|
589 |
examples_per_page=10,
|
|
|
124 |
"",
|
125 |
json.load(open("__asset__/trajs/object/turtle-1.json")),
|
126 |
"__asset__/images/object/turtle-1.jpg",
|
127 |
+
""
|
128 |
],
|
129 |
|
130 |
["__asset__/images/object/rose-1.jpg",
|
|
|
522 |
with gr.Column(scale=6):
|
523 |
input_image = gr.Image(label="Input Image",
|
524 |
interactive=True,
|
525 |
+
height=256,
|
526 |
width=384,)
|
527 |
with gr.Column(scale=6):
|
528 |
output_image = gr.Image(label="Motion Path",
|
|
|
578 |
with gr.Row():
|
579 |
def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
|
580 |
|
581 |
+
return input_image, prompt, drag_mode, seed, personalized
|
582 |
|
583 |
example = gr.Examples(
|
584 |
label="Input Example",
|
585 |
examples=image_examples,
|
586 |
inputs=[input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path],
|
587 |
+
outputs=[input_image, prompt, drag_mode, seed, personalized],
|
588 |
fn=process_example,
|
589 |
run_on_click=True,
|
590 |
examples_per_page=10,
|