Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ model.compile(optimizer='adam',
|
|
38 |
loss='sparse_categorical_crossentropy',
|
39 |
metrics=['accuracy'])
|
40 |
|
41 |
-
model.fit(X_train, y_train, epochs=
|
42 |
|
43 |
def predict_image(img):
|
44 |
img_3d = img.reshape(-1, 28,28)
|
@@ -49,6 +49,6 @@ def predict_image(img):
|
|
49 |
return pred.item()
|
50 |
|
51 |
|
52 |
-
iface = gr.Interface(predict_image, inputs='sketchpad', outputs='label', title='Digit Recognition Model By Debamrita Paul', description='Draw a single digit(0 to 9)'
|
53 |
|
54 |
iface.launch()
|
|
|
38 |
loss='sparse_categorical_crossentropy',
|
39 |
metrics=['accuracy'])
|
40 |
|
41 |
+
model.fit(X_train, y_train, epochs=1)
|
42 |
|
43 |
def predict_image(img):
|
44 |
img_3d = img.reshape(-1, 28,28)
|
|
|
49 |
return pred.item()
|
50 |
|
51 |
|
52 |
+
iface = gr.Interface(predict_image, inputs='sketchpad', outputs='label', title='Digit Recognition Model By Debamrita Paul', description='Draw a single digit(0 to 9)')
|
53 |
|
54 |
iface.launch()
|