Gregniuki commited on
Commit
0490910
·
1 Parent(s): 8b4b8b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -156,13 +156,13 @@ async def main(
156
  # )
157
  # config = None
158
  # def load_model(button):
159
- nonlocal config
160
- global onnx_model
161
- nonlocal model
162
- nonlocal models_path
163
- selected_voice = selection.value
164
- onnx_model = f"{models_path}/{selected_voice}"
165
- model, config = load_onnx(onnx_model, sess_options, providers)
166
  # if enhanced_accessibility:
167
  # playaudio("loaded")
168
  # if config["num_speakers"] > 1:
 
156
  # )
157
  # config = None
158
  # def load_model(button):
159
+ # nonlocal config
160
+ # global onnx_model
161
+ # nonlocal model
162
+ # nonlocal models_path
163
+ # selected_voice = selection.value
164
+ # onnx_model = f"{models_path}/{selected_voice}"
165
+ # model, config = load_onnx(onnx_model, sess_options, providers)
166
  # if enhanced_accessibility:
167
  # playaudio("loaded")
168
  # if config["num_speakers"] > 1: