Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
fd595d3
1
Parent(s):
2d21bb0
Update images_history.py
Browse files- images_history.py +1 -1
images_history.py
CHANGED
@@ -29,7 +29,7 @@ def get_img_info(evt: gr.SelectData):
|
|
29 |
return index, info, items
|
30 |
|
31 |
def img_history_ui(tab):
|
32 |
-
all_dirs = os.listdir(client_config['save_path'])
|
33 |
all_dirs.sort(reverse=True)
|
34 |
with gr.Row():
|
35 |
img_dir_path = gr.Dropdown(choices=all_dirs, value=None, label='图片文件夹')
|
|
|
29 |
return index, info, items
|
30 |
|
31 |
def img_history_ui(tab):
|
32 |
+
all_dirs = os.listdir(client_config['save_path']) if os.path.exists(client_config['save_path']) else []
|
33 |
all_dirs.sort(reverse=True)
|
34 |
with gr.Row():
|
35 |
img_dir_path = gr.Dropdown(choices=all_dirs, value=None, label='图片文件夹')
|