MyNewSpace / app.py
ISYS's picture
Upload app.py
30ac140
raw
history blame
321 Bytes
import gradio as gr
import numpy as np
from huggingface_hub import from_pretrained_keras
model = from_pretrained_keras("ISYS/MyNewModel")
def greet(img):
img = np.expand_dims(img, axis=0)
return np.argmax(model.predict(img)[0])
iface = gr.Interface(fn=greet, inputs="sketchpad", outputs="text")
iface.launch()