Spaces:
Runtime error
Runtime error
Kvikontent
commited on
Commit
β’
33341a3
1
Parent(s):
d18f074
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ interface = gr.Interface(
|
|
17 |
theme="soft"
|
18 |
)
|
19 |
|
20 |
-
|
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
|