Commit
·
a0f3c9e
1
Parent(s):
ddcb389
Update app.py
Browse files
app.py
CHANGED
@@ -41,20 +41,8 @@ def predict(img):
|
|
41 |
|
42 |
return pred_labels_and_probs, pred_time
|
43 |
|
44 |
-
|
45 |
-
|
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.jpeg'],
|
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."
|
|
|
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."
|