Kvikontent commited on
Commit
b25264b
β€’
1 Parent(s): 57d9bfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ interface = gr.Interface(
17
  theme="soft"
18
  )
19
 
20
- @spaces.GPU(duration=500)
21
  def generate_video(image):
22
  """
23
  Generates a video from an input image using the pipeline.
@@ -28,7 +28,7 @@ def generate_video(image):
28
  Returns:
29
  A list of PIL Images representing the video frames.
30
  """
31
- video_frames = pipeline(image=image).images
32
 
33
  return video_frames
34
 
 
17
  theme="soft"
18
  )
19
 
20
+ @spaces.GPU(duration=250)
21
  def generate_video(image):
22
  """
23
  Generates a video from an input image using the pipeline.
 
28
  Returns:
29
  A list of PIL Images representing the video frames.
30
  """
31
+ video_frames = pipeline(image=image, num_inference_steps=20).images
32
 
33
  return video_frames
34