multimodalart HF staff commited on
Commit
a767e49
1 Parent(s): 1748a6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -254,6 +254,7 @@ def edit_with_pnp(input_video,
254
  batch_size,
255
  n_frames,
256
  n_seconds,
 
257
  inversion_prompt)
258
  config["batch_size"] = batch_size
259
  config["n_frames"] = n_frames
@@ -294,7 +295,8 @@ with gr.Blocks(css="style.css") as demo:
294
  inverted_latents = gr.State()
295
  latents = gr.State()
296
  do_inversion = gr.State(value=True)
297
-
 
298
  with gr.Row():
299
  input_video = gr.Video(label="Input Video", interactive=True, elem_id="input_video")
300
  output_video = gr.Video(label="Edited Video", interactive=False, elem_id="output_video")
@@ -342,7 +344,7 @@ with gr.Blocks(css="style.css") as demo:
342
  minimum=1, maximum=2, step=1)
343
  n_timesteps = gr.Slider(label='Diffusion steps', minimum=25, maximum=100,
344
  value=50, step=25, interactive=True)
345
- n_fps_input = gr.Slider(label="Input frames per second", value=40, minimum=1, maximum=120)
346
  n_fps = gr.Slider(label='Output frames per second', minimum=1, maximum=60,
347
  value=10, step=1, interactive=True)
348
 
 
254
  batch_size,
255
  n_frames,
256
  n_seconds,
257
+ n_fps_input,
258
  inversion_prompt)
259
  config["batch_size"] = batch_size
260
  config["n_frames"] = n_frames
 
295
  inverted_latents = gr.State()
296
  latents = gr.State()
297
  do_inversion = gr.State(value=True)
298
+ n_fps_input = gr.State()
299
+
300
  with gr.Row():
301
  input_video = gr.Video(label="Input Video", interactive=True, elem_id="input_video")
302
  output_video = gr.Video(label="Edited Video", interactive=False, elem_id="output_video")
 
344
  minimum=1, maximum=2, step=1)
345
  n_timesteps = gr.Slider(label='Diffusion steps', minimum=25, maximum=100,
346
  value=50, step=25, interactive=True)
347
+ #n_fps_input = gr.Slider(label="Input frames per second", value=40, minimum=1, maximum=120)
348
  n_fps = gr.Slider(label='Output frames per second', minimum=1, maximum=60,
349
  value=10, step=1, interactive=True)
350