crobbi commited on
Commit
edb390c
1 Parent(s): f02d2b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def test(k):
11
  print(k.shape)
12
  k = k / 255.
13
  model = create_model()
14
- return np.argmax(model.predict(k))
15
  gr.Interface(inputs=gr.Sketchpad(),
16
  outputs="number",
17
  fn=test,
 
11
  print(k.shape)
12
  k = k / 255.
13
  model = create_model()
14
+ return np.argmax(model.predict(k.reshape(-1,28,28)))
15
  gr.Interface(inputs=gr.Sketchpad(),
16
  outputs="number",
17
  fn=test,