Spaces:
Runtime error
Runtime error
feat: set model_path in ENV
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ LANGUAGES = {
|
|
| 130 |
|
| 131 |
# Model configuration
|
| 132 |
SYSTEM_PROMPT = "You are a speech synthesizer that generates natural, realistic, and human-like conversational audio from dialogue text."
|
| 133 |
-
MODEL_PATH =
|
| 134 |
SPT_CONFIG_PATH = "XY_Tokenizer/config/xy_tokenizer_config.yaml"
|
| 135 |
# SPT_CHECKPOINT_PATH = "XY_Tokenizer/weights/xy_tokenizer.ckpt"
|
| 136 |
MAX_CHANNELS = 8
|
|
|
|
| 130 |
|
| 131 |
# Model configuration
|
| 132 |
SYSTEM_PROMPT = "You are a speech synthesizer that generates natural, realistic, and human-like conversational audio from dialogue text."
|
| 133 |
+
MODEL_PATH = os.environ["MODEL_REPO_ID"]
|
| 134 |
SPT_CONFIG_PATH = "XY_Tokenizer/config/xy_tokenizer_config.yaml"
|
| 135 |
# SPT_CHECKPOINT_PATH = "XY_Tokenizer/weights/xy_tokenizer.ckpt"
|
| 136 |
MAX_CHANNELS = 8
|