Spaces:
Runtime error
Runtime error
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() |