Uthar commited on
Commit
2c1071a
·
verified ·
1 Parent(s): dd5b582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,6 @@ inference_timeout = 400
19
  default_models = models[:num_models]
20
  MAX_SEED = 2**32-1
21
 
22
- load_fn(models)
23
-
24
  def gr_Interface_load(
25
  name: str,
26
  src: str | None = None,
@@ -78,6 +76,8 @@ def load_fn(models):
78
  m = gr.Interface(lambda: None, ['text'], ['image'])
79
  models_load.update({model: m})
80
 
 
 
81
  def extend_choices(choices):
82
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
83
 
 
19
  default_models = models[:num_models]
20
  MAX_SEED = 2**32-1
21
 
 
 
22
  def gr_Interface_load(
23
  name: str,
24
  src: str | None = None,
 
76
  m = gr.Interface(lambda: None, ['text'], ['image'])
77
  models_load.update({model: m})
78
 
79
+ load_fn(models)
80
+
81
  def extend_choices(choices):
82
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
83