Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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("
|
115 |
-
st.write(
|
|
|
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 |
|