Spaces:
Runtime error
Runtime error
Update app_df.py
Browse files
app_df.py
CHANGED
|
@@ -130,6 +130,12 @@ def generate_diffusion_forced_video(
|
|
| 130 |
resolution_options = ["540P", "720P"]
|
| 131 |
model_options = ["Skywork/SkyReels-V2-DF-1.3B-540P"] # Update if there are more
|
| 132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
with gr.Blocks() as demo:
|
| 134 |
with gr.Column():
|
| 135 |
gr.Markdown("# SkyReels V2: Infinite-Length Film Generation")
|
|
@@ -155,7 +161,11 @@ with gr.Blocks() as demo:
|
|
| 155 |
prompt = gr.Textbox(label="Prompt")
|
| 156 |
|
| 157 |
with gr.Row():
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
num_frames = gr.Slider(minimum=17, maximum=257, value=97, step=20, label="Number of Frames", interactive=False)
|
| 161 |
image = gr.Image(type="filepath", label="Input Image (optional)")
|
|
|
|
| 130 |
resolution_options = ["540P", "720P"]
|
| 131 |
model_options = ["Skywork/SkyReels-V2-DF-1.3B-540P"] # Update if there are more
|
| 132 |
|
| 133 |
+
length_options = []
|
| 134 |
+
if is_shared_ui is True:
|
| 135 |
+
length_options = ["4", "10", "15"]
|
| 136 |
+
else:
|
| 137 |
+
length_options = ["4", "10", "15", "30", "60"]
|
| 138 |
+
|
| 139 |
with gr.Blocks() as demo:
|
| 140 |
with gr.Column():
|
| 141 |
gr.Markdown("# SkyReels V2: Infinite-Length Film Generation")
|
|
|
|
| 161 |
prompt = gr.Textbox(label="Prompt")
|
| 162 |
|
| 163 |
with gr.Row():
|
| 164 |
+
if is_shared_ui:
|
| 165 |
+
target_length = gr.Radio(label="Video length target", choices=length_options, value="4")
|
| 166 |
+
forbidden_length = gr.Radio(label="Available target on duplicated instance", choices=["30","60"], value=None, interactive=False)
|
| 167 |
+
else:
|
| 168 |
+
target_length = gr.Radio(label="Video length target", choices=length_options, value="4")
|
| 169 |
|
| 170 |
num_frames = gr.Slider(minimum=17, maximum=257, value=97, step=20, label="Number of Frames", interactive=False)
|
| 171 |
image = gr.Image(type="filepath", label="Input Image (optional)")
|