Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,6 @@ model = load_model('SD_4car_20230110_h5')
|
|
7 |
|
8 |
def car4_classifier(img):
|
9 |
img=np.expand_dims(img, 0)
|
10 |
-
img = preprocess_input(img)
|
11 |
predictionsA3 = model.predict(img)
|
12 |
pred=int(list(np.argmax(predictionsA3, axis=1))[0])
|
13 |
if pred==0:
|
|
|
7 |
|
8 |
def car4_classifier(img):
|
9 |
img=np.expand_dims(img, 0)
|
|
|
10 |
predictionsA3 = model.predict(img)
|
11 |
pred=int(list(np.argmax(predictionsA3, axis=1))[0])
|
12 |
if pred==0:
|