crobbi's picture
Create app.py
6189582
raw
history blame
333 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(input_value / 255.)
gr.Interface(fn=predict_v,
inputs = gr.SketchPad(),
outputs="number").launch()