From 915853870fe8418ac4a5265e7c1971cb7ef78be0 Mon Sep 17 00:00:00 2001 From: ShakaRover <53261069+ShakaRover@users.noreply.github.com> Date: Wed, 29 May 2024 20:01:55 +0800 Subject: [PATCH] fix file select filter bug (#2076) --- gui_v1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui_v1.py b/gui_v1.py index 45a5891..b253de6 100644 --- a/gui_v1.py +++ b/gui_v1.py @@ -253,7 +253,7 @@ if __name__ == "__main__": initial_folder=os.path.join( os.getcwd(), "assets/weights" ), - file_types=((". pth"),), + file_types=[('Model File', '*.pth')], ), ], [ @@ -264,7 +264,7 @@ if __name__ == "__main__": sg.FileBrowse( i18n("选择.index文件"), initial_folder=os.path.join(os.getcwd(), "logs"), - file_types=((". index"),), + file_types=[('Index File', '*.index')], ), ], ],