Spaces:
Sleeping
Sleeping
test
Browse files
app.py
CHANGED
@@ -91,7 +91,9 @@ Welcome to the **Essay Grading System**! This interactive app helps educators ge
|
|
91 |
topic = st.text_input("Enter Topic")
|
92 |
|
93 |
difficulty = st.selectbox("Select Difficulty", ["Easy", "Moderate", "Difficult"])
|
94 |
-
|
|
|
|
|
95 |
if st.button("Generate Question"):
|
96 |
if subject and topic and difficulty:
|
97 |
st.session_state.essay_question = generate_essay_question(subject, topic, difficulty)
|
|
|
91 |
topic = st.text_input("Enter Topic")
|
92 |
|
93 |
difficulty = st.selectbox("Select Difficulty", ["Easy", "Moderate", "Difficult"])
|
94 |
+
st.session_state.subject = subject
|
95 |
+
st.session_state.topic = topic
|
96 |
+
|
97 |
if st.button("Generate Question"):
|
98 |
if subject and topic and difficulty:
|
99 |
st.session_state.essay_question = generate_essay_question(subject, topic, difficulty)
|