File size: 281 Bytes
d0bbc42
caa5920
 
4e95af2
 
 
d0bbc42
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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()