Spaces:
Runtime error
Runtime error
SIVAPRASATH
commited on
Commit
•
33c08fb
1
Parent(s):
c31f47d
app.py
Browse files
app.py
CHANGED
@@ -49,12 +49,11 @@ def cgpa_calculator_interface(course_data):
|
|
49 |
return f"Your CGPA is: {cgpa}"
|
50 |
except ValueError:
|
51 |
return "Invalid input. Please ensure all credit hours are integers."
|
52 |
-
|
53 |
-
with gr.Interface(
|
54 |
cgpa_calculator_interface,
|
55 |
inputs = [gr.Textbox(label="Grade", placeholder="Enter grade (O, A+, A, B+, etc.)"), gr.Textbox(label="Credits", placeholder="Enter credit hours", type="number"),],
|
56 |
gr.Interface.Label(label="Add Course"),
|
57 |
debug=True,
|
58 |
title="CGPA Calculator"
|
59 |
-
)
|
60 |
-
|
|
|
49 |
return f"Your CGPA is: {cgpa}"
|
50 |
except ValueError:
|
51 |
return "Invalid input. Please ensure all credit hours are integers."
|
52 |
+
gr.Interface(
|
|
|
53 |
cgpa_calculator_interface,
|
54 |
inputs = [gr.Textbox(label="Grade", placeholder="Enter grade (O, A+, A, B+, etc.)"), gr.Textbox(label="Credits", placeholder="Enter credit hours", type="number"),],
|
55 |
gr.Interface.Label(label="Add Course"),
|
56 |
debug=True,
|
57 |
title="CGPA Calculator"
|
58 |
+
)
|
59 |
+
iface.launch(share=True)
|