r3gm commited on
Commit
62c13f1
1 Parent(s): bc9ca81

Update infer.py

Browse files
Files changed (1) hide show
  1. infer.py +1 -1
infer.py CHANGED
@@ -269,7 +269,7 @@ def get_vc(sid, to_return_protect0):
269
  weights_index.append(os.path.join(index_root, file))
270
  if weights_index == []:
271
  selected_index = gr.Dropdown.update(value="")
272
- else
273
  selected_index = gr.Dropdown.update(value=weights_index[0])
274
  for index, model_index in enumerate(weights_index):
275
  if selected_model in model_index:
 
269
  weights_index.append(os.path.join(index_root, file))
270
  if weights_index == []:
271
  selected_index = gr.Dropdown.update(value="")
272
+ else:
273
  selected_index = gr.Dropdown.update(value=weights_index[0])
274
  for index, model_index in enumerate(weights_index):
275
  if selected_model in model_index: