Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ if uploaded_files:
|
|
| 109 |
conf = float(np.max(probs))
|
| 110 |
|
| 111 |
with cols[j]:
|
| 112 |
-
st.image(display_img, caption=f"Pred: {label} ({conf*100:.1f}%)",
|
| 113 |
st.bar_chart(probs)
|
| 114 |
|
| 115 |
# ---- Drawing Pad ----
|
|
@@ -141,7 +141,7 @@ if canvas_result is not None and canvas_result.image_data is not None:
|
|
| 141 |
""",
|
| 142 |
unsafe_allow_html=True
|
| 143 |
)
|
| 144 |
-
st.image(display_img, caption="Preprocessed (28×28) view", width=
|
| 145 |
st.bar_chart(probs)
|
| 146 |
|
| 147 |
# ---- Footer ----
|
|
|
|
| 109 |
conf = float(np.max(probs))
|
| 110 |
|
| 111 |
with cols[j]:
|
| 112 |
+
st.image(display_img, caption=f"Pred: {label} ({conf*100:.1f}%)", use_container_width=True)
|
| 113 |
st.bar_chart(probs)
|
| 114 |
|
| 115 |
# ---- Drawing Pad ----
|
|
|
|
| 141 |
""",
|
| 142 |
unsafe_allow_html=True
|
| 143 |
)
|
| 144 |
+
st.image(display_img, caption="Preprocessed (28×28) view", width=60)
|
| 145 |
st.bar_chart(probs)
|
| 146 |
|
| 147 |
# ---- Footer ----
|