Kvikontent commited on
Commit
33341a3
1 Parent(s): d18f074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ interface = gr.Interface(
17
  theme="soft"
18
  )
19
 
20
- # Define the function to generate the video
21
  def generate_video(img):
22
  # Convert the input image to a tensor
23
  img_tensor = torch.tensor(img).unsqueeze(0) / 255.0
 
17
  theme="soft"
18
  )
19
 
20
+ @spaces.GPU(duration=200)
21
  def generate_video(img):
22
  # Convert the input image to a tensor
23
  img_tensor = torch.tensor(img).unsqueeze(0) / 255.0