File size: 240 Bytes
cc5a075
 
d723038
 
ccc7f1f
 
d723038
cc5a075
7cc1129
cc5a075
1
2
3
4
5
6
7
8
9
10
import gradio as gr

def predict(image):
    return image


inp = gr.inputs.Image(source="webcam", shape=(224,224))

iface = gr.Interface(fn=predict, inputs=inp, outputs=predict,interpretation='default', capture_session=True)
iface.launch()