jbilcke-hf HF Staff commited on
Commit
a090eb8
·
verified ·
1 Parent(s): 0dff6dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -157,19 +157,11 @@ with gr.Blocks() as demo:
157
 
158
  # Add notice for limited spaces
159
  if IS_ORIGINAL_SPACE:
160
- gr.Markdown("⚠️ **This free public demo limits the resolution to 640x640, duration to 2s, and inference steps to 3. For full capabilities please duplicate this space.**")
161
 
162
  with gr.Row():
163
  with gr.Column():
164
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, placeholder="Describe the video you want to generate...")
165
- duration_seconds_input = gr.Slider(
166
- minimum=round(MIN_FRAMES_MODEL/FIXED_FPS,1),
167
- maximum=MAX_DURATION,
168
- step=0.1,
169
- value=2,
170
- label="Duration (seconds)",
171
- info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps."
172
- )
173
 
174
  with gr.Accordion("Advanced Settings", open=False):
175
  negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
@@ -190,6 +182,14 @@ with gr.Blocks() as demo:
190
  value=min(DEFAULT_W_SLIDER_VALUE, SLIDER_MAX_W),
191
  label=f"Output Width (multiple of {MOD_VALUE})"
192
  )
 
 
 
 
 
 
 
 
193
  steps_slider = gr.Slider(minimum=1, maximum=MAX_STEPS, step=1, value=4, label="Inference Steps")
194
  guidance_scale_input = gr.Slider(minimum=0.0, maximum=20.0, step=0.5, value=1.0, label="Guidance Scale", visible=False)
195
 
 
157
 
158
  # Add notice for limited spaces
159
  if IS_ORIGINAL_SPACE:
160
+ gr.Markdown("⚠️ **This free public demo limits 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():
164
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, placeholder="Describe the video you want to generate...")
 
 
 
 
 
 
 
 
165
 
166
  with gr.Accordion("Advanced Settings", open=False):
167
  negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
 
182
  value=min(DEFAULT_W_SLIDER_VALUE, SLIDER_MAX_W),
183
  label=f"Output Width (multiple of {MOD_VALUE})"
184
  )
185
+ duration_seconds_input = gr.Slider(
186
+ minimum=round(MIN_FRAMES_MODEL/FIXED_FPS,1),
187
+ maximum=MAX_DURATION,
188
+ step=0.1,
189
+ value=2,
190
+ label="Duration (seconds)",
191
+ info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps."
192
+ )
193
  steps_slider = gr.Slider(minimum=1, maximum=MAX_STEPS, step=1, value=4, label="Inference Steps")
194
  guidance_scale_input = gr.Slider(minimum=0.0, maximum=20.0, step=0.5, value=1.0, label="Guidance Scale", visible=False)
195