Towhidul commited on
Commit
bdcd152
1 Parent(s): adf568b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -112,11 +112,23 @@ if file is not None:
112
  st.image(opencv_image, channels="BGR")
113
  with col2:
114
  st.header("Results")
 
 
 
 
 
 
 
 
 
115
  # st.write(file.name)
116
- # st.write("True Label",true_file[true_file.image_id==file.name]["dx"])
117
  st.write("Prediction",class_name[0])
118
  st.metric("Category:", class_name[1])
119
 
 
 
 
120
 
121
 
122
 
 
112
  st.image(opencv_image, channels="BGR")
113
  with col2:
114
  st.header("Results")
115
+
116
+ if file:
117
+ name = file.name.split(".")[0]
118
+ if name in df['image_id'].values:
119
+ st.write("True Label: ", df.loc[df['image_id']==name, 'dx'].iloc[0])
120
+ else:
121
+ st.write("No match")
122
+
123
+
124
  # st.write(file.name)
125
+ # st.write("True Label",true_file[true_file.image_id==file.name]["dx"][0])
126
  st.write("Prediction",class_name[0])
127
  st.metric("Category:", class_name[1])
128
 
129
+
130
+
131
+
132
 
133
 
134