Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,11 +17,11 @@ MODEL_INFO = {
|
|
17 |
}
|
18 |
|
19 |
# Download config once
|
20 |
-
config_path = hf_hub_download("/sulaimank/luganda_LMs/", filename="config.json")
|
21 |
|
22 |
# Function to load synthesizer on demand
|
23 |
def load_synth(model_file):
|
24 |
-
model_path = hf_hub_download("/sulaimank/luganda_LMs/", filename=model_file)
|
25 |
return Synthesizer(
|
26 |
tts_checkpoint=model_path,
|
27 |
tts_config_path=config_path
|
|
|
17 |
}
|
18 |
|
19 |
# Download config once
|
20 |
+
config_path = hf_hub_download("huggingface.co/sulaimank/luganda_LMs/", filename="config.json")
|
21 |
|
22 |
# Function to load synthesizer on demand
|
23 |
def load_synth(model_file):
|
24 |
+
model_path = hf_hub_download("huggingface.co/sulaimank/luganda_LMs/", filename=model_file)
|
25 |
return Synthesizer(
|
26 |
tts_checkpoint=model_path,
|
27 |
tts_config_path=config_path
|