File size: 327 Bytes
350b651
a7a48b8
e99a146
6dc79d9
e99a146
a7a48b8
e99a146
6dc79d9
d7579e3
e99a146
 
 
350b651
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import numpy as np
import gradio as gr
from model import api
from PIL import Image
sign_api = api()

def sign(input_img):
    input_img = Image.fromarray(input_img)
    prediction = sign_api.predict(input_img)
    return prediction

demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
demo.launch()