mich123geb commited on
Commit
8479037
·
verified ·
1 Parent(s): e62db68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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"):