shashichilappagari commited on
Commit
a03474b
·
1 Parent(s): 85ef282

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -29,7 +29,12 @@ face_zoo = dg.connect(hw_location, face_model_zoo_url, token=st.secrets["DG_TOKE
29
  gender_zoo = dg.connect(hw_location, gender_model_zoo_url, token=st.secrets["DG_TOKEN"])
30
 
31
  # Load models
32
- face_model = face_zoo.load_model(face_model_name, image_backend='pil')
 
 
 
 
 
33
  gender_model= gender_zoo.load_model(gender_model_name, image_backend='pil')
34
  # Create a compound cropping model with 50% crop extent
35
  crop_model = degirum_tools.CroppingAndClassifyingCompoundModel(
 
29
  gender_zoo = dg.connect(hw_location, gender_model_zoo_url, token=st.secrets["DG_TOKEN"])
30
 
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.0,
36
+ overlay_font_scale=2.0
37
+ )
38
  gender_model= gender_zoo.load_model(gender_model_name, image_backend='pil')
39
  # Create a compound cropping model with 50% crop extent
40
  crop_model = degirum_tools.CroppingAndClassifyingCompoundModel(