Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
d9ef855
1
Parent(s):
ade45a8
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,17 @@ def image_mod(image_mod):
|
|
13 |
yhat = model.predict(np.expand_dims(resize,0))
|
14 |
display = np.argmax(yhat)
|
15 |
display = str(display)
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
gr.Interface(fn=image_mod,
|
19 |
inputs=gr.Image(shape=(256, 256)),
|
|
|
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":
|
21 |
+
message = "Cloudy"
|
22 |
+
if display == "3":
|
23 |
+
message = "Snowy"
|
24 |
+
if display == "4":
|
25 |
+
message = "Sunny"
|
26 |
+
return message
|
27 |
|
28 |
gr.Interface(fn=image_mod,
|
29 |
inputs=gr.Image(shape=(256, 256)),
|