Spaces:
Runtime error
Runtime error
File size: 333 Bytes
6189582 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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() |