alex commited on
Commit
9576941
·
1 Parent(s): 22f8394
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -119,7 +119,7 @@ def calculate_required_time(steps, max_duration):
119
  warmup_s = 50
120
 
121
  max_duration_duration_mapping = {
122
- 20: 7,
123
  45: 7,
124
  70: 13,
125
  95: 20,
@@ -333,9 +333,9 @@ with gr.Blocks(css=css) as demo:
333
  gr.Markdown("**SETTINGS**")
334
 
335
  default_steps = 10
336
- default_max_duration = 45
337
 
338
- max_duration = gr.Slider(minimum=45, maximum=95, value=default_max_duration, step=25, label="Frames")
339
  steps_input = gr.Slider(minimum=10, maximum=50, value=default_steps, step=5, label="Diffusion Steps")
340
 
341
 
@@ -379,6 +379,15 @@ with gr.Blocks(css=css) as demo:
379
  70,
380
  ],
381
 
 
 
 
 
 
 
 
 
 
382
  [
383
  "A reddish-brown haired woman sits pensively against swirling blue-and-white brushstrokes, dressed in a blue coat and dark waistcoat. The artistic backdrop and her thoughtful pose evoke a Post-Impressionist style in a studio-like setting.",
384
  10,
 
119
  warmup_s = 50
120
 
121
  max_duration_duration_mapping = {
122
+ 20: 3,
123
  45: 7,
124
  70: 13,
125
  95: 20,
 
333
  gr.Markdown("**SETTINGS**")
334
 
335
  default_steps = 10
336
+ default_max_duration = 20
337
 
338
+ max_duration = gr.Slider(minimum=20, maximum=95, value=default_max_duration, step=25, label="Frames")
339
  steps_input = gr.Slider(minimum=10, maximum=50, value=default_steps, step=5, label="Diffusion Steps")
340
 
341
 
 
379
  70,
380
  ],
381
 
382
+
383
+ [
384
+ "A handheld tracking shot follows a female warrior walking through a cave. Her determined eyes are locked straight ahead as she grips a blazing torch tightly in her hand. She speaks with intensity.",
385
+ 10,
386
+ ["./examples/ella.png"],
387
+ "./examples/dream.mp3",
388
+ 20,
389
+ ],
390
+
391
  [
392
  "A reddish-brown haired woman sits pensively against swirling blue-and-white brushstrokes, dressed in a blue coat and dark waistcoat. The artistic backdrop and her thoughtful pose evoke a Post-Impressionist style in a studio-like setting.",
393
  10,