Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ try:
|
|
| 13 |
except Exception as e:
|
| 14 |
raise RuntimeError(f"Failed to load the model: {e}")
|
| 15 |
|
| 16 |
-
@spaces.GPU
|
| 17 |
def generate_video(image, num_frames=25, height=576, width=1024):
|
| 18 |
try:
|
| 19 |
# Convert the image to a format suitable for the pipeline
|
|
|
|
| 13 |
except Exception as e:
|
| 14 |
raise RuntimeError(f"Failed to load the model: {e}")
|
| 15 |
|
| 16 |
+
@spaces.GPU(duration=300)
|
| 17 |
def generate_video(image, num_frames=25, height=576, width=1024):
|
| 18 |
try:
|
| 19 |
# Convert the image to a format suitable for the pipeline
|