crobbi's picture
Update app.py
69ef586
raw
history blame
348 Bytes
import gradio as gr]
import pickle
import numpy as np
model = pickle.load(open("model.pkl","rb"))
def predict_v(input_value):
try:
if input_value == None: pass
except:
return np.argmax(model.predict(input_value / 255.))
gr.Interface(fn=predict_v,
inputs = gr.SketchPad(),
outputs="number").launch()