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
|