Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def predict_v(input_value):
|
|
7 |
try:
|
8 |
if input_value == None: pass
|
9 |
except:
|
10 |
-
return np.argmax(input_value / 255.)
|
11 |
gr.Interface(fn=predict_v,
|
12 |
inputs = gr.SketchPad(),
|
13 |
outputs="number").launch()
|
|
|
7 |
try:
|
8 |
if input_value == None: pass
|
9 |
except:
|
10 |
+
return np.argmax(model.predict(input_value / 255.))
|
11 |
gr.Interface(fn=predict_v,
|
12 |
inputs = gr.SketchPad(),
|
13 |
outputs="number").launch()
|