Update app.py
Browse files
app.py
CHANGED
|
@@ -32,6 +32,8 @@ except ImportError:
|
|
| 32 |
import diffusers
|
| 33 |
import accelerate
|
| 34 |
|
|
|
|
|
|
|
| 35 |
# --- 2. Descarga del Modelo ---
|
| 36 |
MODEL_ID = "tolgacangoz/Wan2.2-S2V-14B-Diffusers"
|
| 37 |
print(f"Verificando modelo {MODEL_ID}...")
|
|
@@ -91,6 +93,7 @@ def merge_audio_video(video_path, audio_path, output_path):
|
|
| 91 |
|
| 92 |
# --- 4. Generaci贸n ---
|
| 93 |
# Se elimin贸 el decorador @spaces.GPU
|
|
|
|
| 94 |
def generate_video(image_input, audio_filepath):
|
| 95 |
global pipe
|
| 96 |
|
|
|
|
| 32 |
import diffusers
|
| 33 |
import accelerate
|
| 34 |
|
| 35 |
+
import spaces
|
| 36 |
+
|
| 37 |
# --- 2. Descarga del Modelo ---
|
| 38 |
MODEL_ID = "tolgacangoz/Wan2.2-S2V-14B-Diffusers"
|
| 39 |
print(f"Verificando modelo {MODEL_ID}...")
|
|
|
|
| 93 |
|
| 94 |
# --- 4. Generaci贸n ---
|
| 95 |
# Se elimin贸 el decorador @spaces.GPU
|
| 96 |
+
@spaces.GPU(duration=120)
|
| 97 |
def generate_video(image_input, audio_filepath):
|
| 98 |
global pipe
|
| 99 |
|