Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ FIXED_OUTPUT_FPS = 18 # we downspeed the output video as a temporary "trick"
|
|
61 |
MIN_FRAMES_MODEL = 8
|
62 |
MAX_FRAMES_MODEL = 81
|
63 |
|
64 |
-
default_prompt_t2v = "
|
65 |
default_negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards, watermark, text, signature"
|
66 |
|
67 |
def get_duration(prompt, height, width,
|
@@ -152,12 +152,12 @@ def generate_video(prompt, height, width,
|
|
152 |
return video_path, current_seed
|
153 |
|
154 |
with gr.Blocks() as demo:
|
155 |
-
gr.Markdown("# ⚡
|
156 |
-
gr.Markdown("This Gradio space is a fork of [wan2-1-fast from
|
157 |
|
158 |
# Add notice for limited spaces
|
159 |
if IS_ORIGINAL_SPACE:
|
160 |
-
gr.Markdown("⚠️ **
|
161 |
|
162 |
with gr.Row():
|
163 |
with gr.Column():
|
@@ -206,9 +206,8 @@ with gr.Blocks() as demo:
|
|
206 |
|
207 |
# Adjust examples based on space limits
|
208 |
example_configs = [
|
209 |
-
["a majestic
|
210 |
-
["a
|
211 |
-
["a field of flowers swaying in the wind, spring morning light", 512, 896],
|
212 |
]
|
213 |
|
214 |
if IS_ORIGINAL_SPACE:
|
|
|
61 |
MIN_FRAMES_MODEL = 8
|
62 |
MAX_FRAMES_MODEL = 81
|
63 |
|
64 |
+
default_prompt_t2v = "A wide aerial view of a bustling open-air street market in a densely built urban neighborhood, narrow lanes packed with colorful umbrellas and stalls, crowds of people walking, talking, and shopping, vibrant fabrics and goods displayed on tables, vendors gesturing to customers, children weaving through the crowd, occasional bicycles passing, the scene alive with constant movement and chatter, distant city skyline visible under a hazy sky, smooth cinematic camera pan across the lively street"
|
65 |
default_negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards, watermark, text, signature"
|
66 |
|
67 |
def get_duration(prompt, height, width,
|
|
|
152 |
return video_path, current_seed
|
153 |
|
154 |
with gr.Blocks() as demo:
|
155 |
+
gr.Markdown("# ⚡ DEval VideoGen")
|
156 |
+
gr.Markdown("This Gradio space is a fork of [wan2-1-fast from jbilcke-hf](https://huggingface.co/spaces/jbilcke-hf/InstaVideo), and is powered by the Wan CausVid LoRA")
|
157 |
|
158 |
# Add notice for limited spaces
|
159 |
if IS_ORIGINAL_SPACE:
|
160 |
+
gr.Markdown("⚠️ **Limit the resolution to 640px, duration to 2s, and inference steps to 4. For full capabilities please duplicate this space.**")
|
161 |
|
162 |
with gr.Row():
|
163 |
with gr.Column():
|
|
|
206 |
|
207 |
# Adjust examples based on space limits
|
208 |
example_configs = [
|
209 |
+
["a majestic condor soaring through mountain peaks, cinematic aerial view", 896, 512],
|
210 |
+
["A wide aerial view of a bustling open-air street market in a densely built urban neighborhood, narrow lanes packed with colorful umbrellas and stalls, crowds of people walking, talking, and shopping, vibrant fabrics and goods displayed on tables, vendors gesturing to customers, children weaving through the crowd, occasional bicycles passing, the scene alive with constant movement and chatter, distant city skyline visible under a hazy sky, smooth cinematic camera pan across the lively street", 448, 832],
|
|
|
211 |
]
|
212 |
|
213 |
if IS_ORIGINAL_SPACE:
|