jhj0517 commited on
Commit
3c09bbc
1 Parent(s): ebdd2a9

Fix output dir

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import yaml
6
 
7
  from modules.sam_inference import SamInference
8
  from modules.model_downloader import DEFAULT_MODEL_TYPE
9
- from modules.paths import (OUTPUT_DIR, SAM2_CONFIGS_DIR)
10
  from modules.utils import open_folder
11
  from modules.constants import (AUTOMATIC_MODE, BOX_PROMPT_MODE)
12
 
@@ -88,7 +88,7 @@ class App:
88
 
89
  btn_generate.click(fn=self.sam_inf.divide_layer,
90
  inputs=input_params, outputs=[gallery_output, output_file])
91
- btn_open_folder.click(fn=lambda: open_folder(os.path.join(OUTPUT_DIR)),
92
  inputs=None, outputs=None)
93
  dd_input_modes.change(fn=self.on_mode_change,
94
  inputs=[dd_input_modes],
 
6
 
7
  from modules.sam_inference import SamInference
8
  from modules.model_downloader import DEFAULT_MODEL_TYPE
9
+ from modules.paths import (OUTPUT_DIR, OUTPUT_PSD_DIR, SAM2_CONFIGS_DIR)
10
  from modules.utils import open_folder
11
  from modules.constants import (AUTOMATIC_MODE, BOX_PROMPT_MODE)
12
 
 
88
 
89
  btn_generate.click(fn=self.sam_inf.divide_layer,
90
  inputs=input_params, outputs=[gallery_output, output_file])
91
+ btn_open_folder.click(fn=lambda: open_folder(os.path.join(OUTPUT_PSD_DIR)),
92
  inputs=None, outputs=None)
93
  dd_input_modes.change(fn=self.on_mode_change,
94
  inputs=[dd_input_modes],