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