Spaces:
Runtime error
Runtime error
shashichilappagari
commited on
Commit
•
d419a22
1
Parent(s):
49777b7
Update app.py
Browse files
app.py
CHANGED
@@ -25,13 +25,13 @@ lp_ocr_model_name = "yolo_v5s_lp_ocr--256x256_quant_n2x_orca1_1"
|
|
25 |
model_zoo = dg.connect(hw_location, model_zoo_url, token=st.secrets["DG_TOKEN"])
|
26 |
|
27 |
# Load models
|
28 |
-
lp_det_model =
|
29 |
image_backend='pil',
|
30 |
overlay_color=(255,0,0),
|
31 |
overlay_line_width=2,
|
32 |
overlay_font_scale=1.5
|
33 |
)
|
34 |
-
lp_ocr_model=
|
35 |
|
36 |
# Create a compound cropping model with 5% crop extent
|
37 |
crop_model = degirum_tools.CroppingAndClassifyingCompoundModel(
|
|
|
25 |
model_zoo = dg.connect(hw_location, model_zoo_url, token=st.secrets["DG_TOKEN"])
|
26 |
|
27 |
# Load models
|
28 |
+
lp_det_model = model_zoo.load_model(lp_det_model_name,
|
29 |
image_backend='pil',
|
30 |
overlay_color=(255,0,0),
|
31 |
overlay_line_width=2,
|
32 |
overlay_font_scale=1.5
|
33 |
)
|
34 |
+
lp_ocr_model= model_zoo.load_model(lp_ocr_model_name, image_backend='pil')
|
35 |
|
36 |
# Create a compound cropping model with 5% crop extent
|
37 |
crop_model = degirum_tools.CroppingAndClassifyingCompoundModel(
|