savasy commited on
Commit
018c082
1 Parent(s): 0dfdb1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -2
app.py CHANGED
@@ -1,3 +1,22 @@
 
1
  from cmpe212projectX import example
2
- x=example.add_two(4)
3
- print(x)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
  from cmpe212projectX import example
3
+
4
+ demo = gr.Interface(
5
+ example.calc_grade,
6
+ [
7
+ gr.Number(label="Quiz"),
8
+ "number",
9
+ "number"
10
+ ],
11
+ "number",
12
+ examples=[
13
+ [45, 12, 30],
14
+ [3.14, 34, 20],
15
+ [144, 23, 88],
16
+ [0, 90, 30],
17
+ ],
18
+ title="Toy Grade Calculator",
19
+ description="Here's a sample grade lculator. Allows you to calculate CMPE 212 Grade",
20
+ )
21
+
22
+ demo.launch(share=True)