import gradio as gr from predict import predict_gradio title = "Mohammad Ali Food Classification🍔" description = "This demo is just for my training, Thank you Daniel Bourke for your courses" demo = gr.Interface( predict_gradio, inputs = gr.Image(type="pil"), outputs = [gr.Label(num_top_classes = 3 , label = "All Predictions in All Classes"), gr.Label(num_top_classes = 1 , label = "Model Predicts Image as a")], examples=["/demo/examples/476421.jpg", "/demo/examples/3479599.jpg", "/demo/examples/911808.jpg"], title = title, description = description ) demo.launch()