Towhidul commited on
Commit
d8dc7cb
1 Parent(s): efac2ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -49,7 +49,7 @@ file = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
49
  print(file)
50
 
51
  true_file=pd.read_csv("HAM10000_metadata.csv")
52
- true_label= true_file["image_id"]
53
 
54
  # true_file.apply(lambda x: x["image_id"] ==file)
55
 
@@ -111,10 +111,13 @@ if file is not None:
111
  st.header("Input Image")
112
  st.image(opencv_image, channels="BGR")
113
  with col2:
114
- st.header("Prediction")
115
- st.write(class_name[0])
 
116
  st.metric("Category:", class_name[1])
117
 
 
 
118
 
119
 
120
 
 
49
  print(file)
50
 
51
  true_file=pd.read_csv("HAM10000_metadata.csv")
52
+
53
 
54
  # true_file.apply(lambda x: x["image_id"] ==file)
55
 
 
111
  st.header("Input Image")
112
  st.image(opencv_image, channels="BGR")
113
  with col2:
114
+ st.header("Results")
115
+ st.write("True Label",true_file[true_file["image_id"]==file]["dx"][0]])
116
+ st.write("Prediction",class_name[0])
117
  st.metric("Category:", class_name[1])
118
 
119
+
120
+
121
 
122
 
123