File size: 459 Bytes
018c082
0dfdb1a
018c082
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
from cmpe212projectX import example

demo = gr.Interface(
    example.calc_grade,
    [
        gr.Number(label="Quiz"),
        "number",
        "number"
    ],
    "number",
    examples=[
        [45, 12, 30],
        [3.14, 34, 20],
        [144, 23, 88],
        [0, 90, 30],
    ],
    title="Toy Grade Calculator",
    description="Here's a sample grade lculator. Allows you to calculate CMPE 212 Grade",
)

demo.launch(share=True)