Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,10 +45,10 @@ def main():
|
|
45 |
image = load_image()
|
46 |
result = st.button('Run on image')
|
47 |
if result and image is not None:
|
48 |
-
st.
|
49 |
flower, closeness = predict(model, labels, image)
|
50 |
-
st.
|
51 |
-
st.
|
52 |
|
53 |
if __name__ == '__main__':
|
54 |
main()
|
|
|
45 |
image = load_image()
|
46 |
result = st.button('Run on image')
|
47 |
if result and image is not None:
|
48 |
+
st.markdown('**_Calculating results..._**')
|
49 |
flower, closeness = predict(model, labels, image)
|
50 |
+
st.markdown(f'<h3 style="color:blue;">Flower Type: <span style="color:black;">{flower}</span></h3>', unsafe_allow_html=True)
|
51 |
+
st.markdown(f'<h3 style="color:green;">Closeness: <span style="color:black;">{closeness}%</span></h3>', unsafe_allow_html=True)
|
52 |
|
53 |
if __name__ == '__main__':
|
54 |
main()
|