Fix SVD model refresh (#39)

This commit is contained in:
Chenlei Hu
2024-02-04 23:27:47 +00:00
committed by GitHub
parent 8117d7fcee
commit cf0bb69a27

View File

@@ -69,7 +69,7 @@ def on_ui_tabs():
value=svd_filenames[0] if len(svd_filenames) > 0 else None)
refresh_button = ToolButton(value=refresh_symbol, tooltip="Refresh")
refresh_button.click(
fn=lambda: gr.update(choices=update_svd_filenames),
fn=lambda: gr.update(choices=update_svd_filenames()),
inputs=[], outputs=filename)
width = gr.Slider(label='Width', minimum=16, maximum=8192, step=8, value=1024)