jhj0517 commited on
Commit
c89e57a
1 Parent(s): bb21642

Chore : update location

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -23,14 +23,6 @@ class App:
23
  with open(default_param_config_path, 'r') as file:
24
  self.hparams = yaml.safe_load(file)
25
 
26
- @staticmethod
27
- def on_mode_change(mode: str):
28
- return [
29
- gr.Image(visible=mode == AUTOMATIC_MODE),
30
- ImagePrompter(visible=mode == BOX_PROMPT_MODE),
31
- gr.Accordion(visible=mode == AUTOMATIC_MODE),
32
- ]
33
-
34
  def mask_parameters(self,
35
  hparams: Optional[Dict] = None):
36
  if hparams is None:
@@ -52,6 +44,14 @@ class App:
52
  ]
53
  return mask_components
54
 
 
 
 
 
 
 
 
 
55
  def launch(self):
56
  _mask_hparams = self.hparams["mask_hparams"]
57
 
 
23
  with open(default_param_config_path, 'r') as file:
24
  self.hparams = yaml.safe_load(file)
25
 
 
 
 
 
 
 
 
 
26
  def mask_parameters(self,
27
  hparams: Optional[Dict] = None):
28
  if hparams is None:
 
44
  ]
45
  return mask_components
46
 
47
+ @staticmethod
48
+ def on_mode_change(mode: str):
49
+ return [
50
+ gr.Image(visible=mode == AUTOMATIC_MODE),
51
+ ImagePrompter(visible=mode == BOX_PROMPT_MODE),
52
+ gr.Accordion(visible=mode == AUTOMATIC_MODE),
53
+ ]
54
+
55
  def launch(self):
56
  _mask_hparams = self.hparams["mask_hparams"]
57