Gregniuki commited on
Commit
a8f7811
·
1 Parent(s): d882d59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -171,7 +171,7 @@ async def load_model_data():
171
  onnx_models = model_names # Populate onnx_models here
172
  print(config_names[0])
173
  print(model_names[0])
174
- for model_name in model_names:
175
  print(model_name)
176
  # Load the configuration data for each model (including speaker_id_map)
177
  config = load_model_configuration(models_path, model_name) # Pass config_name, not models_path
@@ -181,7 +181,7 @@ async def load_model_data():
181
 
182
  def load_model_configuration(models_path, config_name):
183
  # Assuming config_name is the name of the JSON configuration file, e.g., 'model.json'
184
- config_file_path = os.path.join(config_name, ".json")
185
 
186
  try:
187
  with open(config_file_path, 'r') as config_file:
 
171
  onnx_models = model_names # Populate onnx_models here
172
  print(config_names[0])
173
  print(model_names[0])
174
+ for model_name in config_names:
175
  print(model_name)
176
  # Load the configuration data for each model (including speaker_id_map)
177
  config = load_model_configuration(models_path, model_name) # Pass config_name, not models_path
 
181
 
182
  def load_model_configuration(models_path, config_name):
183
  # Assuming config_name is the name of the JSON configuration file, e.g., 'model.json'
184
+ config_file_path = os.path.join("", config_name)
185
 
186
  try:
187
  with open(config_file_path, 'r') as config_file: