LogicGoInfotechSpaces commited on
Commit
8bc66d4
·
1 Parent(s): 07eb20a

Add dlib dependency and improve debugging

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -85,11 +85,13 @@ def ensure_weights():
85
  def get_runner() -> SimpleRunner:
86
  global RUNNER
87
  if RUNNER is None:
 
88
  ensure_weights()
89
  logger.info("Initializing SimpleRunner with %s", "pretrained_models/sfe_editor_light.pt")
90
  RUNNER = SimpleRunner(
91
  editor_ckpt_pth="pretrained_models/sfe_editor_light.pt",
92
  )
 
93
  return RUNNER
94
 
95
 
 
85
  def get_runner() -> SimpleRunner:
86
  global RUNNER
87
  if RUNNER is None:
88
+ logger.info("Getting runner - calling ensure_weights()")
89
  ensure_weights()
90
  logger.info("Initializing SimpleRunner with %s", "pretrained_models/sfe_editor_light.pt")
91
  RUNNER = SimpleRunner(
92
  editor_ckpt_pth="pretrained_models/sfe_editor_light.pt",
93
  )
94
+ logger.info("SimpleRunner initialized successfully")
95
  return RUNNER
96
 
97
 
requirements.txt CHANGED
@@ -19,3 +19,4 @@ torch
19
  torchvision
20
  clip @ git+https://github.com/openai/CLIP.git@a1d071733d7111c9c014f024669f959182114e33
21
  spaces>=0.28.3
 
 
19
  torchvision
20
  clip @ git+https://github.com/openai/CLIP.git@a1d071733d7111c9c014f024669f959182114e33
21
  spaces>=0.28.3
22
+ dlib