Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from huggingface_hub import hf_hub_download
|
|
8 |
app_title = "Detect defects in bird nest jar"
|
9 |
models_ids = ['linhcuem/defects_nest_jar_yolov5']
|
10 |
|
11 |
-
current_model_id = models_ids
|
12 |
model = yolov5.load(current_model_id)
|
13 |
|
14 |
examples = [['test_images/16823291638707408-a2A2448-23gmBAS_40174045.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5'], ['test_images/16823292102253310-a2A2448-23gmBAS_40174046.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5'], ['test_images/16823291808953550-a2A2448-23gmBAS_40174048.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5'], ['test_images/16823291801532480-a2A2448-23gmBAS_40174048.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5']]
|
|
|
8 |
app_title = "Detect defects in bird nest jar"
|
9 |
models_ids = ['linhcuem/defects_nest_jar_yolov5']
|
10 |
|
11 |
+
current_model_id = models_ids
|
12 |
model = yolov5.load(current_model_id)
|
13 |
|
14 |
examples = [['test_images/16823291638707408-a2A2448-23gmBAS_40174045.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5'], ['test_images/16823292102253310-a2A2448-23gmBAS_40174046.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5'], ['test_images/16823291808953550-a2A2448-23gmBAS_40174048.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5'], ['test_images/16823291801532480-a2A2448-23gmBAS_40174048.jpg', 0.25, 'linhcuem/defects_nest_jar_yolov5']]
|