File size: 314 Bytes
c9dcefe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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() |