Salman11223 commited on
Commit
37559b1
·
verified ·
1 Parent(s): 832c9f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -25,6 +25,10 @@ model_files = {
25
  "s3fd.pth": "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
26
  }
27
 
 
 
 
 
28
  for filename, url in model_files.items():
29
  file_path = os.path.join("checkpoints" if "pth" in filename else "face_detection", filename)
30
  if not os.path.exists(file_path):
@@ -33,8 +37,7 @@ for filename, url in model_files.items():
33
  with open(file_path, 'wb') as f:
34
  f.write(r.content)
35
 
36
- # Initialize TTS model
37
- tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
38
 
39
  # Translation class
40
  class translation:
 
25
  "s3fd.pth": "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth"
26
  }
27
 
28
+ # Initialize TTS model
29
+ tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
30
+
31
+
32
  for filename, url in model_files.items():
33
  file_path = os.path.join("checkpoints" if "pth" in filename else "face_detection", filename)
34
  if not os.path.exists(file_path):
 
37
  with open(file_path, 'wb') as f:
38
  f.write(r.content)
39
 
40
+
 
41
 
42
  # Translation class
43
  class translation: