AndreasXi commited on
Commit
9b0b08f
·
1 Parent(s): 25ca1c9

update web

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -76,8 +76,6 @@ def load_model_if_needed(variant: str):
76
  log.info(f"Model {variant} loaded and cached successfully")
77
  return net, feature_utils
78
 
79
- # ensure_models_downloaded()
80
-
81
 
82
  @spaces.GPU(duration=60)
83
  @torch.inference_mode()
@@ -254,6 +252,7 @@ gr_interface = gr.Interface(
254
  cache_examples="lazy", # Turn on to cache.
255
  )
256
 
 
257
  gr_interface.queue(15).launch()
258
 
259
  # theme = gr.themes.Soft(
 
76
  log.info(f"Model {variant} loaded and cached successfully")
77
  return net, feature_utils
78
 
 
 
79
 
80
  @spaces.GPU(duration=60)
81
  @torch.inference_mode()
 
252
  cache_examples="lazy", # Turn on to cache.
253
  )
254
 
255
+ ensure_models_downloaded()
256
  gr_interface.queue(15).launch()
257
 
258
  # theme = gr.themes.Soft(