Spaces:
Runtime error
Runtime error
Commit
Β·
1803787
1
Parent(s):
3649714
Update app.py
Browse files
app.py
CHANGED
@@ -91,13 +91,13 @@ class SubjectiveTest:
|
|
91 |
# Example usage
|
92 |
data = ' '.join(paragraphs)
|
93 |
noOfQues = 5
|
94 |
-
st.
|
95 |
subjective_generator = SubjectiveTest(data, noOfQues)
|
96 |
question_list = subjective_generator.generate_test("")
|
97 |
questions = []
|
98 |
|
99 |
Quiz = st.form("Quiz")
|
100 |
-
st.
|
101 |
for i, question in enumerate(question_list):
|
102 |
if "Explain" not in question and len(tool.check(question)) == 0 and grammar_sense(question) == "Make Sense":
|
103 |
questions.append(f"{question}")
|
@@ -116,7 +116,7 @@ for i, question in enumerate(questions):
|
|
116 |
submit_button = Quiz.form_submit_button("Submit")
|
117 |
|
118 |
if submit_button:
|
119 |
-
st.
|
120 |
for i, q in enumerate(questions):
|
121 |
st.progress(i)
|
122 |
result = client.predict(
|
@@ -142,3 +142,4 @@ if submit_button:
|
|
142 |
|
143 |
st.info(f'Your average score for the answers is {average_score}%')
|
144 |
st.write(f'Your average score for the answers is {average_score}%')
|
|
|
|
91 |
# Example usage
|
92 |
data = ' '.join(paragraphs)
|
93 |
noOfQues = 5
|
94 |
+
st.toast("Creating Questions", icon='β
')
|
95 |
subjective_generator = SubjectiveTest(data, noOfQues)
|
96 |
question_list = subjective_generator.generate_test("")
|
97 |
questions = []
|
98 |
|
99 |
Quiz = st.form("Quiz")
|
100 |
+
st.toast("Filtering Questions", icon='β
')
|
101 |
for i, question in enumerate(question_list):
|
102 |
if "Explain" not in question and len(tool.check(question)) == 0 and grammar_sense(question) == "Make Sense":
|
103 |
questions.append(f"{question}")
|
|
|
116 |
submit_button = Quiz.form_submit_button("Submit")
|
117 |
|
118 |
if submit_button:
|
119 |
+
st.toast("Calculating grade", icon='β
')
|
120 |
for i, q in enumerate(questions):
|
121 |
st.progress(i)
|
122 |
result = client.predict(
|
|
|
142 |
|
143 |
st.info(f'Your average score for the answers is {average_score}%')
|
144 |
st.write(f'Your average score for the answers is {average_score}%')
|
145 |
+
st.balloons()
|