Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -258,7 +258,23 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 258 |
visible=False
|
| 259 |
)
|
| 260 |
|
| 261 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
"🎬 Generate Video",
|
| 263 |
variant="primary",
|
| 264 |
elem_classes=["generate-btn"]
|
|
@@ -284,6 +300,10 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 284 |
)
|
| 285 |
|
| 286 |
ui_inputs = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
input_image_component, prompt_input, height_input, width_input,
|
| 288 |
negative_prompt_input, duration_seconds_input,
|
| 289 |
guidance_scale_input, steps_slider, seed_input, randomize_seed_checkbox
|
|
|
|
| 258 |
visible=False
|
| 259 |
)
|
| 260 |
|
| 261 |
+
# --- Optional Local LoRA Controls ---
|
| 262 |
+
with gr.Accordion("🎛️ Optional Local LoRA", open=False):
|
| 263 |
+
optional_lora_dropdown = gr.Dropdown(
|
| 264 |
+
label="Select Local LoRA",
|
| 265 |
+
choices=["None", "GEN", "INS"],
|
| 266 |
+
value="None"
|
| 267 |
+
)
|
| 268 |
+
lora_strength_slider = gr.Slider(
|
| 269 |
+
label="Local LoRA Strength",
|
| 270 |
+
minimum=0.0,
|
| 271 |
+
maximum=2.0,
|
| 272 |
+
value=1.0,
|
| 273 |
+
step=0.05
|
| 274 |
+
)
|
| 275 |
+
|
| 276 |
+
# Insert before button
|
| 277 |
+
generate_button = gr.Button((
|
| 278 |
"🎬 Generate Video",
|
| 279 |
variant="primary",
|
| 280 |
elem_classes=["generate-btn"]
|
|
|
|
| 300 |
)
|
| 301 |
|
| 302 |
ui_inputs = [
|
| 303 |
+
input_image_component, prompt_input, height_input, width_input,
|
| 304 |
+
negative_prompt_input, duration_seconds_input,
|
| 305 |
+
guidance_scale_input, steps_slider, seed_input, randomize_seed_checkbox,
|
| 306 |
+
optional_lora_dropdown, lora_strength_slider
|
| 307 |
input_image_component, prompt_input, height_input, width_input,
|
| 308 |
negative_prompt_input, duration_seconds_input,
|
| 309 |
guidance_scale_input, steps_slider, seed_input, randomize_seed_checkbox
|