Spaces:
Running
Running
P01yH3dr0n
commited on
Commit
•
944cbf7
1
Parent(s):
fd595d3
Update images_history.py
Browse files- images_history.py +2 -1
images_history.py
CHANGED
@@ -29,7 +29,8 @@ def get_img_info(evt: gr.SelectData):
|
|
29 |
return index, info, items
|
30 |
|
31 |
def img_history_ui(tab):
|
32 |
-
|
|
|
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 |
+
os.makedirs(client_config['save_path'], exist_ok=True)
|
33 |
+
all_dirs = os.listdir(client_config['save_path'])
|
34 |
all_dirs.sort(reverse=True)
|
35 |
with gr.Row():
|
36 |
img_dir_path = gr.Dropdown(choices=all_dirs, value=None, label='图片文件夹')
|