Spaces:
Sleeping
Sleeping
samuel2424
commited on
Commit
·
e82d8f6
1
Parent(s):
8dbb475
todo
Browse files
app.py
CHANGED
@@ -44,9 +44,8 @@ def predict(img):
|
|
44 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
45 |
|
46 |
# Gradio interface
|
47 |
-
title = "
|
48 |
-
description = "
|
49 |
-
article = "Código en el que está basado [GitHub](https://github.com/georgescutelnicu/Weather-Image-Classification)."
|
50 |
|
51 |
demo = gr.Interface(fn=predict,
|
52 |
inputs=gr.Image(type="pil"),
|
@@ -54,9 +53,8 @@ demo = gr.Interface(fn=predict,
|
|
54 |
gr.Number(label="Prediction time (s)")],
|
55 |
examples=example_list,
|
56 |
title=title,
|
57 |
-
description=description
|
58 |
-
article=article)
|
59 |
|
60 |
|
61 |
demo.launch(debug=False,
|
62 |
-
share=False)
|
|
|
44 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
45 |
|
46 |
# Gradio interface
|
47 |
+
title = "Weather image recognition ⛅❄☔"
|
48 |
+
description = "Classifies the weather from an image, able to recognize 12 types of weather."
|
|
|
49 |
|
50 |
demo = gr.Interface(fn=predict,
|
51 |
inputs=gr.Image(type="pil"),
|
|
|
53 |
gr.Number(label="Prediction time (s)")],
|
54 |
examples=example_list,
|
55 |
title=title,
|
56 |
+
description=description)
|
|
|
57 |
|
58 |
|
59 |
demo.launch(debug=False,
|
60 |
+
share=False)
|