Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ if page == "Dataset":
|
|
| 108 |
with cols[idx]:
|
| 109 |
st.write(f"### {label}")
|
| 110 |
for img_path in images:
|
| 111 |
-
st.image(img_path,
|
| 112 |
|
| 113 |
# Data Visualization Page
|
| 114 |
elif page == "Data Visualization":
|
|
@@ -148,7 +148,7 @@ elif page == "Model Metrics":
|
|
| 148 |
|
| 149 |
# Confusion Matrix
|
| 150 |
st.subheader("Confusion Matrix")
|
| 151 |
-
st.image("con_mat.png",
|
| 152 |
|
| 153 |
# Training Curves
|
| 154 |
col1, col2 = st.columns(2)
|
|
@@ -176,7 +176,7 @@ elif page == "Classification":
|
|
| 176 |
|
| 177 |
if uploaded_file:
|
| 178 |
image = Image.open(uploaded_file).convert("RGB")
|
| 179 |
-
st.image(image,
|
| 180 |
|
| 181 |
# Transform and predict
|
| 182 |
image_tensor = transform(image).unsqueeze(0)
|
|
|
|
| 108 |
with cols[idx]:
|
| 109 |
st.write(f"### {label}")
|
| 110 |
for img_path in images:
|
| 111 |
+
st.image(img_path, use_container_width=True)
|
| 112 |
|
| 113 |
# Data Visualization Page
|
| 114 |
elif page == "Data Visualization":
|
|
|
|
| 148 |
|
| 149 |
# Confusion Matrix
|
| 150 |
st.subheader("Confusion Matrix")
|
| 151 |
+
st.image("con_mat.png", use_container_width=True)
|
| 152 |
|
| 153 |
# Training Curves
|
| 154 |
col1, col2 = st.columns(2)
|
|
|
|
| 176 |
|
| 177 |
if uploaded_file:
|
| 178 |
image = Image.open(uploaded_file).convert("RGB")
|
| 179 |
+
st.image(image, use_container_width=True)
|
| 180 |
|
| 181 |
# Transform and predict
|
| 182 |
image_tensor = transform(image).unsqueeze(0)
|