File size: 227 Bytes
fe15a96
 
 
a7a9bdc
 
 
fe15a96
a7a9bdc
 
1
2
3
4
5
6
7
8
9
import gradio as gr
from PIL import Image

def image_predict(image):
    # ... code to predict the class of the image goes here...
    pass

iface = gr.Interface(fn=image_predict, inputs="image", outputs="label")
iface.launch()