Mr00Magician commited on
Commit
7b9be9f
1 Parent(s): e948646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -12,9 +12,8 @@ def predict(img):
12
  pred = loaded_SNN.predict([img_array])
13
  return np.argmax(pred)
14
 
15
- if __name__ == '__main__':
16
- iface = gr.Interface(predict, inputs = 'sketchpad',
17
- outputs = 'text',
18
- allow_flagging = 'never',
19
- description = 'Draw a Digit Below... (Draw in the centre for best results)')
20
- iface.launch(share = True, width = 500, height = 500)
 
12
  pred = loaded_SNN.predict([img_array])
13
  return np.argmax(pred)
14
 
15
+ iface = gr.Interface(predict, inputs = 'sketchpad',
16
+ outputs = 'text',
17
+ allow_flagging = 'never',
18
+ description = 'Draw a Digit Below... (Draw in the centre for best results)')
19
+ iface.launch(share = True, width = 500, height = 500)