Commit
·
7d7b21d
1
Parent(s):
63ac246
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,20 @@ def predict(img):
|
|
41 |
|
42 |
return pred_labels_and_probs, pred_time
|
43 |
|
44 |
-
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
# Gradio interface
|
47 |
title = "Weather image classification ⛅❄☔"
|
48 |
description = "Classifies the weather from an image, able to recognize 12 types of weather."
|
|
|
41 |
|
42 |
return pred_labels_and_probs, pred_time
|
43 |
|
44 |
+
# example_list = [["examples/" + example] for example in os.listdir("examples")]
|
45 |
+
example_list = [['examples/cloudy.jpg'],
|
46 |
+
['examples/dew.jpg'],
|
47 |
+
['examples/fog.jpg'],
|
48 |
+
['examples/frost.jpg'],
|
49 |
+
['examples/hail.jpg'],
|
50 |
+
['examples/lightning.jpg'],
|
51 |
+
['examples/rain.jpg'],
|
52 |
+
['examples/rainbow.jpg'],
|
53 |
+
['examples/shine.jpg'],
|
54 |
+
['examples/snow.jpg'],
|
55 |
+
['examples/sunrise.jpg'],
|
56 |
+
['examples/tornado.jpg']]
|
57 |
+
|
58 |
# Gradio interface
|
59 |
title = "Weather image classification ⛅❄☔"
|
60 |
description = "Classifies the weather from an image, able to recognize 12 types of weather."
|