Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,12 @@ import os
|
|
| 3 |
import subprocess
|
| 4 |
import uuid
|
| 5 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# ✅ Download model if not present
|
| 8 |
if not os.path.exists("wav2lip_gan.pth"):
|
|
|
|
| 3 |
import subprocess
|
| 4 |
import uuid
|
| 5 |
from PIL import Image
|
| 6 |
+
# add at the top of app.py
|
| 7 |
+
try:
|
| 8 |
+
import scipy
|
| 9 |
+
except ImportError:
|
| 10 |
+
os.system("pip install scipy")
|
| 11 |
+
import scipy
|
| 12 |
|
| 13 |
# ✅ Download model if not present
|
| 14 |
if not os.path.exists("wav2lip_gan.pth"):
|