Ammar971 commited on
Commit
73b58d0
·
1 Parent(s): 65abef9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=5)
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)', __gradio_theme='dark')
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()