Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -481,11 +481,11 @@ with gr.Blocks() as demo:
|
|
| 481 |
with gr.Column():
|
| 482 |
result = gr.Image(label="Output Image", interactive=False)
|
| 483 |
prompt_preview = gr.Textbox(label="Processed Prompt", interactive=False)
|
| 484 |
-
create_video_button = gr.Button(
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
)
|
| 489 |
# with gr.Group(visible=False) as video_group:
|
| 490 |
# video_output = gr.Video(
|
| 491 |
# label="Generated Video",
|
|
@@ -500,6 +500,18 @@ with gr.Blocks() as demo:
|
|
| 500 |
]
|
| 501 |
outputs = [result, seed, prompt_preview]
|
| 502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 503 |
# # Reset behavior
|
| 504 |
# reset_btn.click(
|
| 505 |
# fn=reset_all,
|
|
|
|
| 481 |
with gr.Column():
|
| 482 |
result = gr.Image(label="Output Image", interactive=False)
|
| 483 |
prompt_preview = gr.Textbox(label="Processed Prompt", interactive=False)
|
| 484 |
+
# create_video_button = gr.Button(
|
| 485 |
+
# "🎥 Create Video Between Images",
|
| 486 |
+
# variant="secondary",
|
| 487 |
+
# visible=False
|
| 488 |
+
# )
|
| 489 |
# with gr.Group(visible=False) as video_group:
|
| 490 |
# video_output = gr.Video(
|
| 491 |
# label="Generated Video",
|
|
|
|
| 500 |
]
|
| 501 |
outputs = [result, seed, prompt_preview]
|
| 502 |
|
| 503 |
+
gr.on(
|
| 504 |
+
triggers=[run_btn],
|
| 505 |
+
fn=infer_camera_edit,
|
| 506 |
+
inputs = [
|
| 507 |
+
image, rotate_deg, move_forward,
|
| 508 |
+
vertical_tilt, wideangle,
|
| 509 |
+
seed, randomize_seed, true_guidance_scale, num_inference_steps, height, width, prev_output
|
| 510 |
+
],
|
| 511 |
+
outputs=[result,seed,prompt_preview]
|
| 512 |
+
)
|
| 513 |
+
|
| 514 |
+
|
| 515 |
# # Reset behavior
|
| 516 |
# reset_btn.click(
|
| 517 |
# fn=reset_all,
|