Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,21 +10,21 @@ def classify_image(img):
|
|
| 10 |
return dict(zip(categories, map(float,probs)))
|
| 11 |
|
| 12 |
examples = ['images/Test/MILITARY.jpg',
|
| 13 |
-
'
|
| 14 |
-
'
|
| 15 |
-
'
|
| 16 |
-
'
|
| 17 |
-
'
|
| 18 |
-
'
|
| 19 |
-
'
|
| 20 |
-
'
|
| 21 |
-
'
|
| 22 |
-
'
|
| 23 |
-
'
|
| 24 |
-
'
|
| 25 |
-
'
|
| 26 |
-
'
|
| 27 |
-
'
|
| 28 |
|
| 29 |
'''path = Path('images/Test')
|
| 30 |
if path.exists():
|
|
|
|
| 10 |
return dict(zip(categories, map(float,probs)))
|
| 11 |
|
| 12 |
examples = ['images/Test/MILITARY.jpg',
|
| 13 |
+
'Test/SUPERCAR (2).jpg',
|
| 14 |
+
'Test/MOTORCYCLE.jpg',
|
| 15 |
+
'Test/BIGTRUCK (2).jpg',
|
| 16 |
+
'Test/CAR.jpg',
|
| 17 |
+
'Test/VAN.jpg',
|
| 18 |
+
'Test/BIGTRUCK.jpg',
|
| 19 |
+
'Test/กระบะ.jpg',
|
| 20 |
+
'Test/MOTORCYCLE (2).jpg',
|
| 21 |
+
'Test/BUS.jpg',
|
| 22 |
+
'Test/CAR (2).jpg',
|
| 23 |
+
'Test/PicupTruck.jpg',
|
| 24 |
+
'Test/SUV.jpg',
|
| 25 |
+
'Test/Van.jpg',
|
| 26 |
+
'Test/SUPERCAR.jpg',
|
| 27 |
+
'Test/what-is-a-semi-truck.jpg']
|
| 28 |
|
| 29 |
'''path = Path('images/Test')
|
| 30 |
if path.exists():
|