Spaces:
Running
Running
Commit Β·
222ed7a
1
Parent(s): 8820ba4
Simplify model loading: Remove progress_bar parameter that might cause issues
Browse files
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
|
| 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,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"
|
| 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
|
| 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}")
|