shashichilappagari commited on
Commit
7f9aedb
1 Parent(s): a6ed968

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -31,11 +31,15 @@ age_zoo = dg.connect(hw_location, age_model_zoo_url, token=st.secrets["DG_TOKEN"
31
  # Load models
32
  face_model = face_zoo.load_model(face_model_name,
33
  image_backend='pil',
 
34
  overlay_color=(255,0,0),
35
  overlay_line_width=2,
36
  overlay_font_scale=1.5
37
  )
38
- age_model= age_zoo.load_model(age_model_name, overlay_show_probabilities=True, overlay_show_labels=True, image_backend='pil')
 
 
 
39
  # Create a compound cropping model with 50% crop extent
40
  crop_model = degirum_tools.CroppingAndClassifyingCompoundModel(
41
  face_model, age_model, 50.0
 
31
  # Load models
32
  face_model = face_zoo.load_model(face_model_name,
33
  image_backend='pil',
34
+ overlay_show_probabilities=True,
35
  overlay_color=(255,0,0),
36
  overlay_line_width=2,
37
  overlay_font_scale=1.5
38
  )
39
+ age_model= age_zoo.load_model(age_model_name,
40
+ overlay_show_probabilities=True,
41
+ overlay_show_labels=True,
42
+ image_backend='pil')
43
  # Create a compound cropping model with 50% crop extent
44
  crop_model = degirum_tools.CroppingAndClassifyingCompoundModel(
45
  face_model, age_model, 50.0