Spaces:
Sleeping
Sleeping
Update app.py
Browse files39 unmodified lines4041424344451 unmodified line474849505152535439 unmodified linesdef main():st.title('Oxford 102 Flower Classification Demo')model = load_model()labels = load_labels()image = load_image()1 unmodified lineif result and image is not None:st.markdown('**_Calculating results..._**')flower, closeness = predict(model, labels, image)st.markdown(f'<h3 style="color:blue;">Flower Type: <span style="color:black;">{flower}</span></h3>', unsafe_allow_html=True)st.markdown(f'<h3 style="color:green;">Closeness: <span style="color:black;">{closeness}%</span></h3>', unsafe_allow_html=True)if __name__ == '__main__':main()39 unmodified lines4041424344454647484950515253541 unmodified line565758596061626339 unmodified linesdef main():st.title('Oxford 102 Flower Classification Demo')st.markdown('### NAME:')st.write('Oxford 102 Flower Classification')st.markdown('### CLASS:')st.write('Deep Learning')st.markdown('### LEVEL:')st.write('Beginner')st.markdown('---')st.write("This is a demo of an image classification model trained on the Oxford 102 Flower Dataset. It can identify 102 different types of flowers. To test the model, upload an image of a flower and click the 'Run on image' button.")st.markdown('---')model = load_model()labels = load_labels()image = load_image()1 unmodified lineif result and image is not None:st.markdown('**_Calculating results..._**')flower, closeness = predict(model, labels, image)st.markdown(f'<h4 style="color:blue;">Flower Type: <span style="color:black;">{flower}</span></h4>', unsafe_allow_html=True)st.markdown(f'<h4 style="color:green;">Closeness: <span style="color:black;">{closeness}%</span></h4>', unsafe_allow_html=True)if __name__ == '__main__':main()
app.py+11-2