Update app.py
Browse files
app.py
CHANGED
|
@@ -166,6 +166,7 @@ def generate_video(
|
|
| 166 |
"enable_safety_checker": True,
|
| 167 |
"prompt": prompt,
|
| 168 |
"duration": duration,
|
|
|
|
| 169 |
"guidance_scale": guidance_scale,
|
| 170 |
"negative_prompt": negative_prompt,
|
| 171 |
"num_inference_steps": inference_steps,
|
|
@@ -269,6 +270,7 @@ with gr.Blocks(
|
|
| 269 |
random_seed_btn = gr.Button("ιζΊηζ", variant="secondary")
|
| 270 |
with gr.Row():
|
| 271 |
enable_safety = gr.Checkbox(label="π Enable Safety Checker",value=True,interactive=True)
|
|
|
|
| 272 |
|
| 273 |
with gr.Column(scale=1):
|
| 274 |
video_output = gr.Video(label="ηζη»ζ", format="mp4", elem_classes=["video-preview"])
|
|
@@ -285,7 +287,6 @@ with gr.Blocks(
|
|
| 285 |
</div>
|
| 286 |
""")
|
| 287 |
|
| 288 |
-
# η€ΊδΎεΊ
|
| 289 |
gr.Examples(
|
| 290 |
examples=[
|
| 291 |
[
|
|
|
|
| 166 |
"enable_safety_checker": True,
|
| 167 |
"prompt": prompt,
|
| 168 |
"duration": duration,
|
| 169 |
+
"flow_shift": flow_shift,
|
| 170 |
"guidance_scale": guidance_scale,
|
| 171 |
"negative_prompt": negative_prompt,
|
| 172 |
"num_inference_steps": inference_steps,
|
|
|
|
| 270 |
random_seed_btn = gr.Button("ιζΊηζ", variant="secondary")
|
| 271 |
with gr.Row():
|
| 272 |
enable_safety = gr.Checkbox(label="π Enable Safety Checker",value=True,interactive=True)
|
| 273 |
+
flow_shift = gr.Number(3, label="Flow Shift",interactive=False)
|
| 274 |
|
| 275 |
with gr.Column(scale=1):
|
| 276 |
video_output = gr.Video(label="ηζη»ζ", format="mp4", elem_classes=["video-preview"])
|
|
|
|
| 287 |
</div>
|
| 288 |
""")
|
| 289 |
|
|
|
|
| 290 |
gr.Examples(
|
| 291 |
examples=[
|
| 292 |
[
|