miracle01 commited on
Commit
9f412c6
·
verified ·
1 Parent(s): 6370dc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.write('Calculating results...')
49
  flower, closeness = predict(model, labels, image)
50
- st.write(f'Flower Type: {flower}')
51
- st.write(f'Closeness: {closeness}%')
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()