File size: 588 Bytes
8e8ad18
79cd580
 
 
 
 
 
 
 
 
 
 
5b6f2ce
79cd580
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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=["examples/476421.jpg", "examples/3479599.jpg", "examples/911808.jpg"],
    title = title,
    description = description
)

demo.launch()