File size: 347 Bytes
5509100
6189582
 
 
 
 
 
 
 
69ef586
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(model.predict(input_value / 255.))
gr.Interface(fn=predict_v,
            inputs = gr.SketchPad(),
            outputs="number").launch()