Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|