ashishkblink commited on
Commit
222ed7a
Β·
1 Parent(s): 8820ba4

Simplify model loading: Remove progress_bar parameter that might cause issues

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,8 +15,8 @@ MODEL_NAME = "ashishkblink/vakya"
15
  print("πŸš€ Loading Vakya TTS model...")
16
  tts = None
17
  try:
18
- # Try loading with explicit model name
19
- tts = TTS(model_name=MODEL_NAME, progress_bar=True)
20
  print("βœ… Model loaded successfully!")
21
  except ValueError as e:
22
  # This might be the unpacking error - try with explicit model type
@@ -24,7 +24,7 @@ except ValueError as e:
24
  print("πŸ”„ Trying with explicit model type...")
25
  try:
26
  # XTTS models might need explicit specification
27
- tts = TTS(model_name=MODEL_NAME, model_type="tts_models/multilingual/multi-dataset/xtts_v2", progress_bar=True)
28
  print("βœ… Model loaded successfully with explicit type!")
29
  except Exception as e2:
30
  print(f"❌ Explicit type loading failed: {e2}")
@@ -39,7 +39,7 @@ except Exception as e:
39
  try:
40
  print("πŸ”„ Trying alternative model loading method...")
41
  # Try with gpu parameter explicitly set
42
- tts = TTS(model_name=MODEL_NAME, gpu=False, progress_bar=True)
43
  print("βœ… Model loaded successfully with alternative method!")
44
  except Exception as e2:
45
  print(f"❌ Alternative loading also failed: {e2}")
 
15
  print("πŸš€ Loading Vakya TTS model...")
16
  tts = None
17
  try:
18
+ # Try loading with minimal parameters first
19
+ tts = TTS(model_name=MODEL_NAME)
20
  print("βœ… Model loaded successfully!")
21
  except ValueError as e:
22
  # This might be the unpacking error - try with explicit model type
 
24
  print("πŸ”„ Trying with explicit model type...")
25
  try:
26
  # XTTS models might need explicit specification
27
+ tts = TTS(model_name=MODEL_NAME, model_type="tts_models/multilingual/multi-dataset/xtts_v2")
28
  print("βœ… Model loaded successfully with explicit type!")
29
  except Exception as e2:
30
  print(f"❌ Explicit type loading failed: {e2}")
 
39
  try:
40
  print("πŸ”„ Trying alternative model loading method...")
41
  # Try with gpu parameter explicitly set
42
+ tts = TTS(model_name=MODEL_NAME, gpu=False)
43
  print("βœ… Model loaded successfully with alternative method!")
44
  except Exception as e2:
45
  print(f"❌ Alternative loading also failed: {e2}")