Spaces:
Running
on
Zero
Running
on
Zero
SingleZombie
commited on
Commit
·
adefceb
1
Parent(s):
2e38371
update app.py
Browse files
app.py
CHANGED
@@ -243,7 +243,7 @@ def process1(input_path, prompt, sd_model, seed, image_resolution, control_stren
|
|
243 |
x0_strength, control_type, low_threshold, high_threshold,
|
244 |
ddpm_steps, scale, a_prompt, n_prompt,
|
245 |
frame_count, batch_size, mininterv, maxinterv,
|
246 |
-
use_constraints, bg_smooth,
|
247 |
b1, b2, s1, s2):
|
248 |
global_state = GlobalState()
|
249 |
global_state.update_controlnet_model(control_type)
|
@@ -591,23 +591,23 @@ with block:
|
|
591 |
max_interv_c = min(20, frame_count)
|
592 |
min_interv_r = frame_count
|
593 |
max_interv_r = frame_count
|
594 |
-
return (gr.Slider
|
595 |
value=min_interv_c,
|
596 |
maximum=min_interv_r),
|
597 |
-
gr.Slider
|
598 |
value=max_interv_c,
|
599 |
maximum=max_interv_r),
|
600 |
-
gr.Slider
|
601 |
value=frame_count,
|
602 |
maximum=frame_count),
|
603 |
)
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
|
612 |
input_path.change(input_changed, input_path, [
|
613 |
mininterv, maxinterv, frame_count])
|
|
|
243 |
x0_strength, control_type, low_threshold, high_threshold,
|
244 |
ddpm_steps, scale, a_prompt, n_prompt,
|
245 |
frame_count, batch_size, mininterv, maxinterv,
|
246 |
+
use_constraints, bg_smooth,
|
247 |
b1, b2, s1, s2):
|
248 |
global_state = GlobalState()
|
249 |
global_state.update_controlnet_model(control_type)
|
|
|
591 |
max_interv_c = min(20, frame_count)
|
592 |
min_interv_r = frame_count
|
593 |
max_interv_r = frame_count
|
594 |
+
return (gr.Slider(minimum=min_interv_l,
|
595 |
value=min_interv_c,
|
596 |
maximum=min_interv_r),
|
597 |
+
gr.Slider(minimum=max_interv_l,
|
598 |
value=max_interv_c,
|
599 |
maximum=max_interv_r),
|
600 |
+
gr.Slider(minimum=8,
|
601 |
value=frame_count,
|
602 |
maximum=frame_count),
|
603 |
)
|
604 |
+
example = gr.Examples(
|
605 |
+
examples=example_list,
|
606 |
+
inputs=[*ips],
|
607 |
+
fn=process1,
|
608 |
+
outputs=[result_keyframe],
|
609 |
+
cache_examples=True
|
610 |
+
)
|
611 |
|
612 |
input_path.change(input_changed, input_path, [
|
613 |
mininterv, maxinterv, frame_count])
|