Spaces:
Sleeping
Sleeping
Ilija Eftimov
commited on
Commit
·
eb08ed4
1
Parent(s):
5e82ea1
Add title and description
Browse files
app.py
CHANGED
|
@@ -13,5 +13,24 @@ image = gr.inputs.Image(shape=(192,192))
|
|
| 13 |
label = gr.outputs.Label()
|
| 14 |
examples = ['flag_australia.jpg', 'flag_chad.jpg', 'flag_ecuador.jpg', 'flag_monaco.jpg']
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
iface.launch(inline=False)
|
|
|
|
| 13 |
label = gr.outputs.Label()
|
| 14 |
examples = ['flag_australia.jpg', 'flag_chad.jpg', 'flag_ecuador.jpg', 'flag_monaco.jpg']
|
| 15 |
|
| 16 |
+
title = "Confusing flags"
|
| 17 |
+
description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
| 18 |
+
|
| 19 |
+
description = """
|
| 20 |
+
There are too many countries in the world, and even though it'd be interesting to cover all of them, there are a few sets of flags \[0] that look _very_ similar. Namely:
|
| 21 |
+
|
| 22 |
+
* Chad and Romania
|
| 23 |
+
* Senegal and Mali
|
| 24 |
+
* Indoneasia and Monaco
|
| 25 |
+
* New Zealand and Australia
|
| 26 |
+
* Ireland and Côte d’Ivoire
|
| 27 |
+
* Norway and Iceland
|
| 28 |
+
* Venezuela, Ecuador, and Colombia
|
| 29 |
+
* Luxembourg and the Netherlands
|
| 30 |
+
* Slovenia, Russia, and Slovakia
|
| 31 |
+
|
| 32 |
+
This is where AI can help.
|
| 33 |
+
"""
|
| 34 |
+
|
| 35 |
+
iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, title=title, description=description)
|
| 36 |
iface.launch(inline=False)
|