| 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() | |
| 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() | |