Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,22 @@
|
|
|
|
1 |
from cmpe212projectX import example
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|