Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -551,7 +551,7 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
|
|
551 |
value=[(item.get("image", "https://huggingface.co/front/assets/huggingface_logo-noborder.svg"), item["title"]) for item in loras] if loras else [],
|
552 |
label="pick a LoRA",
|
553 |
allow_preview=False,
|
554 |
-
columns=
|
555 |
elem_id="gallery"
|
556 |
)
|
557 |
with gr.Group():
|
@@ -570,7 +570,7 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
|
|
570 |
improve_texture_checkbox = gr.Checkbox(label="Improve Texture (multi-scale)", value=True, info="Uses a two-pass generation for better quality, but is slower.")
|
571 |
# gr.DeepLinkButton()
|
572 |
|
573 |
-
|
574 |
mode_dropdown = gr.Dropdown(["text-to-video", "image-to-video", "video-to-video"], label="Task Mode", value="image-to-video", visible=False) # Keep internal
|
575 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="worst quality, inconsistent motion, blurry, jittery, distorted", lines=2)
|
576 |
with gr.Row():
|
@@ -579,7 +579,7 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
|
|
579 |
with gr.Row():
|
580 |
guidance_scale_slider = gr.Slider(label="Guidance Scale (CFG)", minimum=0, maximum=10, value=1.0, step=0.1) # LTX uses low CFG
|
581 |
steps_slider = gr.Slider(label="Inference Steps (Main Pass)", minimum=1, maximum=30, value=7, step=1) # Default steps for LTX
|
582 |
-
|
583 |
with gr.Row():
|
584 |
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}.")
|
585 |
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}.")
|
|
|
551 |
value=[(item.get("image", "https://huggingface.co/front/assets/huggingface_logo-noborder.svg"), item["title"]) for item in loras] if loras else [],
|
552 |
label="pick a LoRA",
|
553 |
allow_preview=False,
|
554 |
+
columns=3, height="auto",
|
555 |
elem_id="gallery"
|
556 |
)
|
557 |
with gr.Group():
|
|
|
570 |
improve_texture_checkbox = gr.Checkbox(label="Improve Texture (multi-scale)", value=True, info="Uses a two-pass generation for better quality, but is slower.")
|
571 |
# gr.DeepLinkButton()
|
572 |
|
573 |
+
with gr.Accordion("Advanced settings", open=False):
|
574 |
mode_dropdown = gr.Dropdown(["text-to-video", "image-to-video", "video-to-video"], label="Task Mode", value="image-to-video", visible=False) # Keep internal
|
575 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="worst quality, inconsistent motion, blurry, jittery, distorted", lines=2)
|
576 |
with gr.Row():
|
|
|
579 |
with gr.Row():
|
580 |
guidance_scale_slider = gr.Slider(label="Guidance Scale (CFG)", minimum=0, maximum=10, value=1.0, step=0.1) # LTX uses low CFG
|
581 |
steps_slider = gr.Slider(label="Inference Steps (Main Pass)", minimum=1, maximum=30, value=7, step=1) # Default steps for LTX
|
582 |
+
# num_frames_slider = gr.Slider(label="# Frames (Debug - Overridden by Duration)", minimum=9, maximum=MAX_NUM_FRAMES, value=96, step=8, visible=False) # Hidden, as duration controls it
|
583 |
with gr.Row():
|
584 |
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}.")
|
585 |
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}.")
|