Spaces:
Runtime error
Runtime error
Commit
·
a009d7d
1
Parent(s):
517b56c
expand example images
Browse files- app.py +4 -11
- images/test2.jpg +0 -0
- images/test3.jpg +0 -0
- images/test4.jpg +0 -0
- images/test5.jpg +0 -0
- images/test6.jpg +0 -0
app.py
CHANGED
|
@@ -8,17 +8,10 @@ import numpy as np
|
|
| 8 |
# multiclass_model = pickle.load(open('models/MulticlassModel_200x200', 'rb'))
|
| 9 |
ensemble_model = pickle.load(open('EnsembleModels_200x200', 'rb'))
|
| 10 |
|
| 11 |
-
examples = ["images/Conso.jpg", "images/Incom.jpg",'DBF.jpg'
|
| 12 |
-
'images/
|
| 13 |
-
'images/
|
| 14 |
-
'images/
|
| 15 |
-
'images/PPD.jpg',
|
| 16 |
-
'images/PSLF.jpg',
|
| 17 |
-
'images/REA.jpg',
|
| 18 |
-
'images/SCD.jpg',
|
| 19 |
-
'images/TDD.jpg',
|
| 20 |
-
'images/TLF.jpg',
|
| 21 |
-
'images/UD.jpg']
|
| 22 |
|
| 23 |
def preprocess(img):
|
| 24 |
img = cv2.resize(img, (200,200))
|
|
|
|
| 8 |
# multiclass_model = pickle.load(open('models/MulticlassModel_200x200', 'rb'))
|
| 9 |
ensemble_model = pickle.load(open('EnsembleModels_200x200', 'rb'))
|
| 10 |
|
| 11 |
+
examples = ["images/Conso.jpg", "images/Incom.jpg",'DBF.jpg''images/DLC.jpg','images/EHD.jpg',
|
| 12 |
+
'images/IDR.jpg','images/PPD.jpg','images/PSLF.jpg','images/REA.jpg','images/SCD.jpg',
|
| 13 |
+
'images/TDD.jpg','images/TLF.jpg','images/UD.jpg','images/test1.jpg','images/test2.jpg',
|
| 14 |
+
'images/test3.jpg','images/test4.jpg','images/test5.jpg','images/test6.jpg']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
def preprocess(img):
|
| 17 |
img = cv2.resize(img, (200,200))
|
images/test2.jpg
ADDED
|
images/test3.jpg
ADDED
|
images/test4.jpg
ADDED
|
images/test5.jpg
ADDED
|
images/test6.jpg
ADDED
|