Spaces:
Sleeping
Sleeping
sync to remote
Browse files
app.py
CHANGED
@@ -51,6 +51,31 @@ def main():
|
|
51 |
|
52 |
# Streamlit UI
|
53 |
st.title("Essay Grading System")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
tabs = ["Essay Question", "Scoring Rubric", "Grading Outputs"]
|
55 |
selected_tab = st.sidebar.radio("Select a Tab", tabs)
|
56 |
|
@@ -64,7 +89,7 @@ def main():
|
|
64 |
topic = st.text_input("Enter Topic", st.session_state.topic)
|
65 |
else:
|
66 |
topic = st.text_input("Enter Topic")
|
67 |
-
|
68 |
difficulty = st.selectbox("Select Difficulty", ["Easy", "Moderate", "Difficult"])
|
69 |
|
70 |
if st.button("Generate Question"):
|
|
|
51 |
|
52 |
# Streamlit UI
|
53 |
st.title("Essay Grading System")
|
54 |
+
|
55 |
+
about = """# π Essay Grading System π
|
56 |
+
|
57 |
+
Welcome to the **Essay Grading System**! This interactive app helps educators generate essay questions, create scoring rubrics, and automate grading using AI.
|
58 |
+
|
59 |
+
## π Features
|
60 |
+
β
**Essay Question Generator** β Select a subject, topic, and difficulty to generate thought-provoking essay questions.
|
61 |
+
β
**Scoring Rubric Builder** β Automatically generate a rubric and refine it as needed.
|
62 |
+
β
**AI-Powered Grading** β Upload a photo of an exam paper and let AI assess it based on the rubric.
|
63 |
+
|
64 |
+
## π― How It Works
|
65 |
+
1οΈβ£ **Go to the "Essay Question" tab** β Choose your subject, enter a topic, and set the difficulty.
|
66 |
+
2οΈβ£ **Switch to "Scoring Rubric"** β A grading rubric is generated based on the question, and you can edit it.
|
67 |
+
3οΈβ£ **Move to "Grading Outputs"** β Upload an image of a handwritten essay, and the AI will grade it based on the rubric.
|
68 |
+
|
69 |
+
π **Enhance efficiency and accuracy in grading with this AI-assisted tool!**
|
70 |
+
|
71 |
+
### π About the Creator
|
72 |
+
**Created by:** *Louie F. Cervantes, M.Eng. (Information Engineering)*
|
73 |
+
**(c) 2025 West Visayas State University**
|
74 |
+
"""
|
75 |
+
|
76 |
+
with st.expander("About the App"):
|
77 |
+
st.markdown(about)
|
78 |
+
|
79 |
tabs = ["Essay Question", "Scoring Rubric", "Grading Outputs"]
|
80 |
selected_tab = st.sidebar.radio("Select a Tab", tabs)
|
81 |
|
|
|
89 |
topic = st.text_input("Enter Topic", st.session_state.topic)
|
90 |
else:
|
91 |
topic = st.text_input("Enter Topic")
|
92 |
+
|
93 |
difficulty = st.selectbox("Select Difficulty", ["Easy", "Moderate", "Difficult"])
|
94 |
|
95 |
if st.button("Generate Question"):
|