hkhho commited on
Commit
b02a893
·
1 Parent(s): ec69de3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -69,8 +69,7 @@ if uploaded_image is not None and uploaded_query is not None and start_button:
69
  plt.imshow(img[:,:,::-1])
70
  plt.text(
71
  cx ,
72
- cy ,
73
- #class_name+str(round(score.tolist(),2)) ,
74
  ha="left",
75
  va="top",
76
  color="red",
@@ -80,10 +79,8 @@ if uploaded_image is not None and uploaded_query is not None and start_button:
80
  "boxstyle": "square,pad=.3"
81
  })
82
 
83
- #output_image = fig.canvas.tostring_rgb()
84
- plt.close()
85
- output_image = img[:,:,::-1]
86
- st.image(output_image, caption='Predicted Image', use_column_width=True)
87
 
88
  else:
89
  st.write('Please upload an image and a query image.')
 
69
  plt.imshow(img[:,:,::-1])
70
  plt.text(
71
  cx ,
72
+ cy , #class_name+str(round(score.tolist(),2)) ,
 
73
  ha="left",
74
  va="top",
75
  color="red",
 
79
  "boxstyle": "square,pad=.3"
80
  })
81
 
82
+ output_image = img[:,:,::-1]
83
+ st.image(output_image, caption='Predicted Image', use_column_width=True)
 
 
84
 
85
  else:
86
  st.write('Please upload an image and a query image.')