Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -278,12 +278,7 @@ async def main(
|
|
278 |
</script>
|
279 |
"""
|
280 |
|
281 |
-
|
282 |
-
# Load the configuration data for each model (including speaker_id_map)
|
283 |
-
config = load_model_configuration(models_path, config_name) # Pass config_name, not models_path
|
284 |
-
|
285 |
-
if config:
|
286 |
-
model_configurations[config_name] = config
|
287 |
# Pass the necessary data to the HTML template, including speaker_id_map
|
288 |
return templates.TemplateResponse("interface.html", {
|
289 |
"request": request,
|
@@ -291,7 +286,7 @@ async def main(
|
|
291 |
"text_input": text_input,
|
292 |
"data": data,
|
293 |
"selected_model": selected_model,
|
294 |
-
"model_names":
|
295 |
"selected_model": selected_model,
|
296 |
"selected_speaker_id": selected_speaker_id,
|
297 |
"speaker_id_map": speaker_id_map, # Make sure speaker_id_map is included here
|
|
|
278 |
</script>
|
279 |
"""
|
280 |
|
281 |
+
|
|
|
|
|
|
|
|
|
|
|
282 |
# Pass the necessary data to the HTML template, including speaker_id_map
|
283 |
return templates.TemplateResponse("interface.html", {
|
284 |
"request": request,
|
|
|
286 |
"text_input": text_input,
|
287 |
"data": data,
|
288 |
"selected_model": selected_model,
|
289 |
+
"model_names": onnx_models,
|
290 |
"selected_model": selected_model,
|
291 |
"selected_speaker_id": selected_speaker_id,
|
292 |
"speaker_id_map": speaker_id_map, # Make sure speaker_id_map is included here
|