Spaces:
Sleeping
Sleeping
syntax update new gradio version
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ with open('flower_names.txt') as f:
|
|
| 59 |
from gradio.components import Image as gradio_image
|
| 60 |
from gradio.components import Label as gradio_label
|
| 61 |
UI=gr.Interface(fn=image_to_output,
|
| 62 |
-
inputs=gradio_image(
|
| 63 |
outputs=gradio_label(num_top_classes=5),
|
| 64 |
interpretation="default"
|
| 65 |
)
|
|
@@ -68,7 +68,7 @@ UI=gr.Interface(fn=image_to_output,
|
|
| 68 |
description = "This model was trained to recognize 102 types of flowers. For the model to work with high accuracy, refer to the trained flowers [here](https://huggingface.co/spaces/qmjnh/flowerClassification_2/blob/main/flower_names.txt)"
|
| 69 |
|
| 70 |
UI=gr.Interface(fn=image_to_output,
|
| 71 |
-
inputs=gradio_image(
|
| 72 |
outputs=gradio_label(num_top_classes=5),
|
| 73 |
interpretation="default",
|
| 74 |
description=description,
|
|
@@ -80,7 +80,7 @@ description = "This model was trained to recognize 102 types of flowers. For the
|
|
| 80 |
article1="This is an AI model trained to predict the name of the flower in the input picture. To try out the model, simply drop/upload a picture into the '*input box*' and press 'Submit'. The predictions will show up in the '*output box*'\n. Since the model was only trained to classify 102 types of flowers (flowers list can be found [here](https://huggingface.co/spaces/qmjnh/flowerClassification_2/blob/main/flower_names.txt) ), the prediction might be incorrect, but chances are if you try googling the names predicted by the model, the resulting flower will be very familiar to that in your picture. "
|
| 81 |
article2="\n *built by qmjnh*"
|
| 82 |
UI=gr.Interface(fn=image_to_output,
|
| 83 |
-
inputs=gradio_image(
|
| 84 |
outputs=gradio_label(num_top_classes=5),
|
| 85 |
interpretation="none",
|
| 86 |
description=description,
|
|
|
|
| 59 |
from gradio.components import Image as gradio_image
|
| 60 |
from gradio.components import Label as gradio_label
|
| 61 |
UI=gr.Interface(fn=image_to_output,
|
| 62 |
+
inputs=gradio_image(height=224, width=224),
|
| 63 |
outputs=gradio_label(num_top_classes=5),
|
| 64 |
interpretation="default"
|
| 65 |
)
|
|
|
|
| 68 |
description = "This model was trained to recognize 102 types of flowers. For the model to work with high accuracy, refer to the trained flowers [here](https://huggingface.co/spaces/qmjnh/flowerClassification_2/blob/main/flower_names.txt)"
|
| 69 |
|
| 70 |
UI=gr.Interface(fn=image_to_output,
|
| 71 |
+
inputs=gradio_image(height=224, width=224),
|
| 72 |
outputs=gradio_label(num_top_classes=5),
|
| 73 |
interpretation="default",
|
| 74 |
description=description,
|
|
|
|
| 80 |
article1="This is an AI model trained to predict the name of the flower in the input picture. To try out the model, simply drop/upload a picture into the '*input box*' and press 'Submit'. The predictions will show up in the '*output box*'\n. Since the model was only trained to classify 102 types of flowers (flowers list can be found [here](https://huggingface.co/spaces/qmjnh/flowerClassification_2/blob/main/flower_names.txt) ), the prediction might be incorrect, but chances are if you try googling the names predicted by the model, the resulting flower will be very familiar to that in your picture. "
|
| 81 |
article2="\n *built by qmjnh*"
|
| 82 |
UI=gr.Interface(fn=image_to_output,
|
| 83 |
+
inputs=gradio_image(height=224, width=224),
|
| 84 |
outputs=gradio_label(num_top_classes=5),
|
| 85 |
interpretation="none",
|
| 86 |
description=description,
|