Spaces:
Runtime error
Runtime error
Asadel Ann
commited on
Commit
·
e4fe7d7
1
Parent(s):
de99389
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ model = load_model('daging128.model')
|
|
12 |
mlb = pickle.loads(open('daging128.pickle', "rb").read())
|
13 |
labl = ['Busuk', 'Segar', 'Setengah']
|
14 |
def gambaran(image):
|
|
|
15 |
image = cv2.resize(image, (128, 128))
|
16 |
image = image.astype("float") / 255.0
|
17 |
image = img_to_array(image)
|
|
|
12 |
mlb = pickle.loads(open('daging128.pickle', "rb").read())
|
13 |
labl = ['Busuk', 'Segar', 'Setengah']
|
14 |
def gambaran(image):
|
15 |
+
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
16 |
image = cv2.resize(image, (128, 128))
|
17 |
image = image.astype("float") / 255.0
|
18 |
image = img_to_array(image)
|