Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,11 +302,6 @@ def call_pipe(
|
|
| 302 |
|
| 303 |
|
| 304 |
def main():
|
| 305 |
-
gr.Markdown(
|
| 306 |
-
"""
|
| 307 |
-
- https://i-bacon.bunkr.ru/11b45aa7-630b-4189-996f-a6b37a697786.png
|
| 308 |
-
- https://i-bacon.bunkr.ru/2382224f-120e-482d-a75d-f1a1bf13038c.png
|
| 309 |
-
""")
|
| 310 |
# Define the interface inputs
|
| 311 |
inputs = [
|
| 312 |
gr.Textbox(label="Prompt", value="a woman"),
|
|
@@ -317,8 +312,6 @@ def main():
|
|
| 317 |
choices=["720x1280", "544x960", "1280x720", "960x544", "720x720"],
|
| 318 |
value="544x960"
|
| 319 |
),
|
| 320 |
-
# gr.Textbox(label="Frame 1 URL", value="https://i-bacon.bunkr.ru/11b45aa7-630b-4189-996f-a6b37a697786.png"),
|
| 321 |
-
# gr.Textbox(label="Frame 2 URL", value="https://i-bacon.bunkr.ru/2382224f-120e-482d-a75d-f1a1bf13038c.png"),
|
| 322 |
gr.Slider(minimum=0.1, maximum=20, step=0.1, label="Guidance Scale", value=6.0),
|
| 323 |
gr.Slider(minimum=1, maximum=129, step=1, label="Number of Frames", value=49),
|
| 324 |
gr.Slider(minimum=1, maximum=100, step=1, label="Number of Inference Steps", value=30)
|
|
@@ -335,8 +328,8 @@ def main():
|
|
| 335 |
fn=generate_video,
|
| 336 |
inputs=inputs,
|
| 337 |
outputs=outputs,
|
| 338 |
-
title="
|
| 339 |
-
description="Generate videos using the HunyuanVideo model with a prompt and two frames as conditions.",
|
| 340 |
)
|
| 341 |
|
| 342 |
# Launch the Gradio app
|
|
|
|
| 302 |
|
| 303 |
|
| 304 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 305 |
# Define the interface inputs
|
| 306 |
inputs = [
|
| 307 |
gr.Textbox(label="Prompt", value="a woman"),
|
|
|
|
| 312 |
choices=["720x1280", "544x960", "1280x720", "960x544", "720x720"],
|
| 313 |
value="544x960"
|
| 314 |
),
|
|
|
|
|
|
|
| 315 |
gr.Slider(minimum=0.1, maximum=20, step=0.1, label="Guidance Scale", value=6.0),
|
| 316 |
gr.Slider(minimum=1, maximum=129, step=1, label="Number of Frames", value=49),
|
| 317 |
gr.Slider(minimum=1, maximum=100, step=1, label="Number of Inference Steps", value=30)
|
|
|
|
| 328 |
fn=generate_video,
|
| 329 |
inputs=inputs,
|
| 330 |
outputs=outputs,
|
| 331 |
+
title="HunyuanVideo Keyframe IMG+IMG2VID Control Lora",
|
| 332 |
+
description="Generate videos using the HunyuanVideo model with a prompt and two frames as conditions. Gradio / HF Spaces implementation demo.",
|
| 333 |
)
|
| 334 |
|
| 335 |
# Launch the Gradio app
|