import gradio as gr from predict import predict_image demo = gr.Interface( fn=predict_image, inputs=gr.Image(type="numpy"), outputs=[ gr.Label(num_top_classes=3) ], title="Hand Gesture Recognition", description="Upload an image of a hand gesture." ) demo.launch()