Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,11 @@ DEFAULT_NEGATIVE_PROMPT = "shaky, glitchy, low quality, worst quality, deformed,
|
|
| 32 |
DEFAULT_PROMPT = "An astronaut hatches from a fragile egg on the surface of the Moon, the shell cracking and peeling apart in gentle low-gravity motion. Fine lunar dust lifts and drifts outward with each movement, floating in slow arcs before settling back onto the ground. The astronaut pushes free in a deliberate, weightless motion, small fragments of the egg tumbling and spinning through the air. In the background, the deep darkness of space subtly shifts as stars glide with the camera's movement, emphasizing vast depth and scale. The camera performs a smooth, cinematic slow push-in, with natural parallax between the foreground dust, the astronaut, and the distant starfield. Ultra-realistic detail, physically accurate low-gravity motion, cinematic lighting, and a breath-taking, movie-like shot."
|
| 33 |
|
| 34 |
# HuggingFace Hub defaults
|
| 35 |
-
DEFAULT_REPO_ID = "
|
| 36 |
DEFAULT_GEMMA_REPO_ID = "google/gemma-3-12b-it-qat-q4_0-unquantized"
|
| 37 |
-
DEFAULT_CHECKPOINT_FILENAME = "ltx-2-19b-dev-
|
| 38 |
-
DEFAULT_DISTILLED_LORA_FILENAME = "ltx-2-19b-distilled-lora-384
|
| 39 |
-
DEFAULT_SPATIAL_UPSAMPLER_FILENAME = "ltx-2-spatial-upscaler-x2-1.0
|
| 40 |
|
| 41 |
def get_hub_or_local_checkpoint(repo_id: Optional[str] = None, filename: Optional[str] = None):
|
| 42 |
"""Download from HuggingFace Hub or use local checkpoint."""
|
|
@@ -149,7 +149,7 @@ def generate_video(
|
|
| 149 |
|
| 150 |
# Create Gradio interface
|
| 151 |
with gr.Blocks(title="LTX-2 Video π₯π") as demo:
|
| 152 |
-
gr.Markdown("# LTX-2 π₯π:
|
| 153 |
gr.Markdown("State-of-the-art video & audio generation with Lightricks LTX-2 TI2V. Read more: [[model]](https://huggingface.co/Lightricks/LTX-2), [[code]]()")
|
| 154 |
with gr.Row():
|
| 155 |
with gr.Column():
|
|
|
|
| 32 |
DEFAULT_PROMPT = "An astronaut hatches from a fragile egg on the surface of the Moon, the shell cracking and peeling apart in gentle low-gravity motion. Fine lunar dust lifts and drifts outward with each movement, floating in slow arcs before settling back onto the ground. The astronaut pushes free in a deliberate, weightless motion, small fragments of the egg tumbling and spinning through the air. In the background, the deep darkness of space subtly shifts as stars glide with the camera's movement, emphasizing vast depth and scale. The camera performs a smooth, cinematic slow push-in, with natural parallax between the foreground dust, the astronaut, and the distant starfield. Ultra-realistic detail, physically accurate low-gravity motion, cinematic lighting, and a breath-taking, movie-like shot."
|
| 33 |
|
| 34 |
# HuggingFace Hub defaults
|
| 35 |
+
DEFAULT_REPO_ID = "Lightricks/LTX-2"
|
| 36 |
DEFAULT_GEMMA_REPO_ID = "google/gemma-3-12b-it-qat-q4_0-unquantized"
|
| 37 |
+
DEFAULT_CHECKPOINT_FILENAME = "ltx-2-19b-dev-fp8.safetensors"
|
| 38 |
+
DEFAULT_DISTILLED_LORA_FILENAME = "ltx-2-19b-distilled-lora-384.safetensors"
|
| 39 |
+
DEFAULT_SPATIAL_UPSAMPLER_FILENAME = "ltx-2-spatial-upscaler-x2-1.0.safetensors"
|
| 40 |
|
| 41 |
def get_hub_or_local_checkpoint(repo_id: Optional[str] = None, filename: Optional[str] = None):
|
| 42 |
"""Download from HuggingFace Hub or use local checkpoint."""
|
|
|
|
| 149 |
|
| 150 |
# Create Gradio interface
|
| 151 |
with gr.Blocks(title="LTX-2 Video π₯π") as demo:
|
| 152 |
+
gr.Markdown("# LTX-2 π₯π: The First Open Source Audio-Video Model")
|
| 153 |
gr.Markdown("State-of-the-art video & audio generation with Lightricks LTX-2 TI2V. Read more: [[model]](https://huggingface.co/Lightricks/LTX-2), [[code]]()")
|
| 154 |
with gr.Row():
|
| 155 |
with gr.Column():
|