Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -572,6 +572,8 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
|
|
572 |
# gr.DeepLinkButton()
|
573 |
|
574 |
with gr.Accordion("Advanced settings", open=False):
|
|
|
|
|
575 |
mode_dropdown = gr.Dropdown(["text-to-video", "image-to-video", "video-to-video"], label="Task Mode", value="image-to-video", visible=False) # Keep internal
|
576 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="worst quality, inconsistent motion, blurry, jittery, distorted", lines=2)
|
577 |
with gr.Row():
|
@@ -584,8 +586,7 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
|
|
584 |
with gr.Row():
|
585 |
height_slider = gr.Slider(label="Target Height", value=512, step=pipe.vae_spatial_compression_ratio, minimum=MIN_DIM_SLIDER, maximum=MAX_IMAGE_SIZE, info=f"Must be divisible by {pipe.vae_spatial_compression_ratio}.")
|
586 |
width_slider = gr.Slider(label="Target Width", value=704, step=pipe.vae_spatial_compression_ratio, minimum=MIN_DIM_SLIDER, maximum=MAX_IMAGE_SIZE, info=f"Must be divisible by {pipe.vae_spatial_compression_ratio}.")
|
587 |
-
|
588 |
-
lora_scale_slider = gr.Slider(label="LoRA Scale", minimum=0.0, maximum=2.0, step=0.05, value=0.8, info="Adjusts the influence of the selected LoRA.")
|
589 |
|
590 |
|
591 |
# --- Event Handlers ---
|
|
|
572 |
# gr.DeepLinkButton()
|
573 |
|
574 |
with gr.Accordion("Advanced settings", open=False):
|
575 |
+
with gr.Row():
|
576 |
+
lora_scale_slider = gr.Slider(label="LoRA Scale", minimum=0.0, maximum=3, step=0.05, value=1.5, info="Adjusts the influence of the selected LoRA.")
|
577 |
mode_dropdown = gr.Dropdown(["text-to-video", "image-to-video", "video-to-video"], label="Task Mode", value="image-to-video", visible=False) # Keep internal
|
578 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="worst quality, inconsistent motion, blurry, jittery, distorted", lines=2)
|
579 |
with gr.Row():
|
|
|
586 |
with gr.Row():
|
587 |
height_slider = gr.Slider(label="Target Height", value=512, step=pipe.vae_spatial_compression_ratio, minimum=MIN_DIM_SLIDER, maximum=MAX_IMAGE_SIZE, info=f"Must be divisible by {pipe.vae_spatial_compression_ratio}.")
|
588 |
width_slider = gr.Slider(label="Target Width", value=704, step=pipe.vae_spatial_compression_ratio, minimum=MIN_DIM_SLIDER, maximum=MAX_IMAGE_SIZE, info=f"Must be divisible by {pipe.vae_spatial_compression_ratio}.")
|
589 |
+
|
|
|
590 |
|
591 |
|
592 |
# --- Event Handlers ---
|