trohith89 commited on
Commit
8ead90a
·
verified ·
1 Parent(s): 0676bc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
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("MNIST_Classifier.keras")
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")