Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1452,13 +1452,13 @@ def get_duration(
|
|
| 1452 |
extra_time += 60
|
| 1453 |
|
| 1454 |
if duration <= 3:
|
| 1455 |
-
return
|
| 1456 |
elif duration <= 5:
|
| 1457 |
-
return
|
| 1458 |
elif duration <= 10:
|
| 1459 |
-
return
|
| 1460 |
else:
|
| 1461 |
-
return
|
| 1462 |
|
| 1463 |
@spaces.GPU(duration=get_duration)
|
| 1464 |
def generate_video(
|
|
@@ -2765,6 +2765,17 @@ with gr.Blocks(title="LTX-2 Video Distilled 🎥🔈") as demo:
|
|
| 2765 |
)
|
| 2766 |
|
| 2767 |
examples_list = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2768 |
[
|
| 2769 |
"examples/supergirl-2.png",
|
| 2770 |
"A fuzzy puppet superhero character resembling a female puppet with blonde hair and a blue superhero suit sleeping in bed and just waking up, she gradually gets up, rubbing her eyes and looking at her dog that just popped on the bed. the scene feels chaotic, comedic, and emotional with expressive puppet reactions, cinematic lighting, smooth camera motion, shallow depth of field, and high-quality puppet-style animation",
|
|
@@ -2859,6 +2870,7 @@ with gr.Blocks(title="LTX-2 Video Distilled 🎥🔈") as demo:
|
|
| 2859 |
|
| 2860 |
preset_gallery = PresetGallery(
|
| 2861 |
items=[
|
|
|
|
| 2862 |
{"thumb": "examples/supergirl-2.png", "label": "Example 1", "title": "Image + Audio to Video" },
|
| 2863 |
{"thumb": "examples/frame3.png" , "label": "Example 2", "title": "First and Last Frame" },
|
| 2864 |
{"thumb": "examples/supergirl.png" , "label": "Example 3", "title": "Image to Video" },
|
|
|
|
| 1452 |
extra_time += 60
|
| 1453 |
|
| 1454 |
if duration <= 3:
|
| 1455 |
+
return 70 + extra_time
|
| 1456 |
elif duration <= 5:
|
| 1457 |
+
return 90 + extra_time
|
| 1458 |
elif duration <= 10:
|
| 1459 |
+
return 130 + extra_time
|
| 1460 |
else:
|
| 1461 |
+
return 190 + extra_time
|
| 1462 |
|
| 1463 |
@spaces.GPU(duration=get_duration)
|
| 1464 |
def generate_video(
|
|
|
|
| 2765 |
)
|
| 2766 |
|
| 2767 |
examples_list = [
|
| 2768 |
+
[
|
| 2769 |
+
"examples/emmi.png",
|
| 2770 |
+
"A fuzzy puppet character resembling a female puppet with blonde hair and an armour, she gradually starts singing, moving her hands and looking at the camera. the scene feels emotional with expressive puppet reactions, cinematic lighting, smooth camera motion, shallow depth of field, and high-quality puppet-style animation",
|
| 2771 |
+
"Static",
|
| 2772 |
+
"16:9",
|
| 2773 |
+
"Image-to-Video",
|
| 2774 |
+
None,
|
| 2775 |
+
"examples/emmi.mp3",
|
| 2776 |
+
None,
|
| 2777 |
+
],
|
| 2778 |
+
|
| 2779 |
[
|
| 2780 |
"examples/supergirl-2.png",
|
| 2781 |
"A fuzzy puppet superhero character resembling a female puppet with blonde hair and a blue superhero suit sleeping in bed and just waking up, she gradually gets up, rubbing her eyes and looking at her dog that just popped on the bed. the scene feels chaotic, comedic, and emotional with expressive puppet reactions, cinematic lighting, smooth camera motion, shallow depth of field, and high-quality puppet-style animation",
|
|
|
|
| 2870 |
|
| 2871 |
preset_gallery = PresetGallery(
|
| 2872 |
items=[
|
| 2873 |
+
{"thumb": "examples/emmi.png" , "label": "Example 0", "title": "Image + Audio to Video" },
|
| 2874 |
{"thumb": "examples/supergirl-2.png", "label": "Example 1", "title": "Image + Audio to Video" },
|
| 2875 |
{"thumb": "examples/frame3.png" , "label": "Example 2", "title": "First and Last Frame" },
|
| 2876 |
{"thumb": "examples/supergirl.png" , "label": "Example 3", "title": "Image to Video" },
|