Auto choose first verison

pull/243/head
donlinglok 2023-09-06 22:31:13 +08:00 committed by GitHub
parent 920ca3267f
commit dadaaea11f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def on_ui_tabs():
if r:
model_info, model_name, model_type, subfolders, version_strs = r
return [model_info, model_name, model_type, dl_subfolder_drop.update(choices=subfolders), dl_version_drop.update(choices=version_strs)]
return [model_info, model_name, model_type, dl_subfolder_drop.update(choices=subfolders,value=subfolders[0]), dl_version_drop.update(choices=version_strs,value=version_strs[0])]
# ====UI====
with gr.Blocks(analytics_enabled=False) as civitai_helper: