Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
c88e892
1
Parent(s):
edb8459
Update app.py
Browse files
app.py
CHANGED
@@ -7,14 +7,14 @@ import numpy as np
|
|
7 |
model = load_model('eee.keras')
|
8 |
|
9 |
def image_mod(image_mod):
|
10 |
-
img = cv2.imread("
|
11 |
resize = tf.image.resize(img, (256, 256))
|
12 |
plt.imshow(resize.numpy().astype(int))
|
13 |
yhat = model.predict(np.expand_dims(resize,0))
|
14 |
display = np.argmax(yhat)
|
15 |
display = str(display)
|
16 |
if display == "0":
|
17 |
-
message = "Rainy"
|
18 |
if display == "1":
|
19 |
message = "Foggy"
|
20 |
if display == "2":
|
|
|
7 |
model = load_model('eee.keras')
|
8 |
|
9 |
def image_mod(image_mod):
|
10 |
+
img = cv2.imread("Sušárna_a_panely.JPG")
|
11 |
resize = tf.image.resize(img, (256, 256))
|
12 |
plt.imshow(resize.numpy().astype(int))
|
13 |
yhat = model.predict(np.expand_dims(resize,0))
|
14 |
display = np.argmax(yhat)
|
15 |
display = str(display)
|
16 |
if display == "0":
|
17 |
+
message = "Rainy" # Jida,_Zhuhai,_rainy_day.jpg
|
18 |
if display == "1":
|
19 |
message = "Foggy"
|
20 |
if display == "2":
|