Spaces:
Running
Running
Update infer.py
Browse files
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:
|