crobbi's picture
Update app.py
d4055fd
raw
history blame
333 Bytes
import gradio as gr
import pickle
import numpy as np
def test(k):
try:
if k == None:
pass
except:
print(k.shape)
k = k / 255.
return np.argmax(model.predict(k))
gr.Interface(inputs=gr.Sketchpad(),
outputs="number",
fn=test,
live=True).launch()