Spaces:
Paused
Paused
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -86,7 +86,7 @@ print("All models loaded ✅")
|
|
| 86 |
# -----------------------------
|
| 87 |
# 2. Video generation function
|
| 88 |
# -----------------------------
|
| 89 |
-
@
|
| 90 |
def generate_video(prompt: str, negative_prompt: str, seed: int = -1):
|
| 91 |
if seed == -1:
|
| 92 |
seed = random.randint(0, 999999)
|
|
|
|
| 86 |
# -----------------------------
|
| 87 |
# 2. Video generation function
|
| 88 |
# -----------------------------
|
| 89 |
+
@spaces.GPU() # Replace with @spaces.GPU() in Spaces
|
| 90 |
def generate_video(prompt: str, negative_prompt: str, seed: int = -1):
|
| 91 |
if seed == -1:
|
| 92 |
seed = random.randint(0, 999999)
|