File size: 244 Bytes
6026345
 
 
ed5ed95
 
 
 
 
 
 
 
6026345
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr


def greet(image):
    return "Hello " + image + "!"


inputs = gr.inputs.Image(shape=(192, 192))
outputs = gr.outputs.Label(num_top_classes=3)

iface = gr.Interface(fn=greet, inputs=inputs, outputs=outputs)
iface.launch()