Spaces:
Paused
Paused
Update web_ui.py
Browse files
web_ui.py
CHANGED
|
@@ -29,12 +29,13 @@ def initialize_model():
|
|
| 29 |
model_dir = "YatharthS/MiraTTS"
|
| 30 |
|
| 31 |
# Initialize with HF Spaces compatible settings
|
| 32 |
-
MODEL = MiraTTS(
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
cache_max_entry_count=0.
|
| 37 |
)
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
logging.info("Model initialized successfully")
|
|
|
|
| 29 |
model_dir = "YatharthS/MiraTTS"
|
| 30 |
|
| 31 |
# Initialize with HF Spaces compatible settings
|
| 32 |
+
MODEL = MiraTTS(
|
| 33 |
+
model_dir=model_dir,
|
| 34 |
+
tp=1, # Single GPU
|
| 35 |
+
enable_prefix_caching=False, # Disable for stability
|
| 36 |
+
cache_max_entry_count=0.1 # Reduced cache
|
| 37 |
)
|
| 38 |
+
|
| 39 |
|
| 40 |
|
| 41 |
logging.info("Model initialized successfully")
|