Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,21 @@ cnn = NeuralNetClassifier(
|
|
73 |
|
74 |
cnn.fit(XCnn_train, y_train)
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
stroke_width = st.sidebar.slider("Stroke width: ", 1, 35, 32)
|
77 |
stroke_color = st.sidebar.color_picker("Stroke color hex: ")
|
78 |
bg_color = st.sidebar.color_picker("Background color hex: ", "#eee")
|
|
|
73 |
|
74 |
cnn.fit(XCnn_train, y_train)
|
75 |
|
76 |
+
|
77 |
+
|
78 |
+
# Set the page title
|
79 |
+
st.title("Handwritten Text Digit Recognition")
|
80 |
+
|
81 |
+
# Create a CSS style to center-align text
|
82 |
+
centered_title = f"""
|
83 |
+
<div style="text-align: center; padding: 10px;">
|
84 |
+
<h1>Handwritten Text Digit Recognition</h1>
|
85 |
+
</div>
|
86 |
+
"""
|
87 |
+
# Display the centered title
|
88 |
+
st.markdown(centered_title, unsafe_allow_html=True)
|
89 |
+
|
90 |
+
|
91 |
stroke_width = st.sidebar.slider("Stroke width: ", 1, 35, 32)
|
92 |
stroke_color = st.sidebar.color_picker("Stroke color hex: ")
|
93 |
bg_color = st.sidebar.color_picker("Background color hex: ", "#eee")
|