qmjnh commited on
Commit
6ec9c73
1 Parent(s): ee18541

Update app.py

Browse files

add some text for the article display

Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -74,4 +74,18 @@ UI=gr.Interface(fn=image_to_output,
74
  article="*built by qmjnh*"
75
  )
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  UI.launch(share=True)
 
74
  article="*built by qmjnh*"
75
  )
76
 
77
+ description = "This model was trained to recognize 102 types 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)"
78
+ article1="This is an AI model trained to predict the name of the flower in the input picture, given that the flower is one of 102 types of flowers (flowers list can be found [here](https://huggingface.co/spaces/qmjnh/flowerClassification_2/blob/main/flower_names.txt). 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"
79
+ article2="\n *built by qmjnh*"
80
+ UI=gr.Interface(fn=image_to_output,
81
+ inputs=gradio_image(shape=(224,224)),
82
+ outputs=gradio_label(num_top_classes=5),
83
+ interpretation="none",
84
+ description=description,
85
+ title="Flower Classifier",
86
+ article= article1 + article2
87
+ )
88
+
89
+
90
+
91
  UI.launch(share=True)