Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,19 @@ st.markdown("""
|
|
| 21 |
# --- Load Model ---
|
| 22 |
@st.cache_resource
|
| 23 |
def load_digit_model():
|
| 24 |
-
return load_model("
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# --- Drawing Canvas ---
|
| 29 |
st.subheader("Draw Your Digit")
|
|
|
|
| 21 |
# --- Load Model ---
|
| 22 |
@st.cache_resource
|
| 23 |
def load_digit_model():
|
| 24 |
+
return load_model("mnist_cnn_model_32x32_balanced_dataset.keras")
|
| 25 |
+
|
| 26 |
+
# --- App Title and Instructions ---
|
| 27 |
+
st.title("✍️ Handwritten Digit Recognizer")
|
| 28 |
+
st.markdown("Draw a digit (0–9) in the box below and click **Predict** to see the result!")
|
| 29 |
+
|
| 30 |
+
with st.expander("ℹ️ How to Use", expanded=False):
|
| 31 |
+
st.markdown("""
|
| 32 |
+
- Draw a digit clearly in the center of the canvas.
|
| 33 |
+
- Use a thick stroke.
|
| 34 |
+
- Click **Predict** to see the result.
|
| 35 |
+
- Use **Clear Canvas** to start over.
|
| 36 |
+
""")
|
| 37 |
|
| 38 |
# --- Drawing Canvas ---
|
| 39 |
st.subheader("Draw Your Digit")
|