import gradio as gr from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("Narsil/pet-segmentation") print(model.summary()) def greet(name): return "Hello " + name + "!!" iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()