Spaces:
Runtime error
Runtime error
BillBojangeles2000
commited on
Commit
β’
b3be0d5
1
Parent(s):
d028ca3
Update app.py
Browse files
app.py
CHANGED
@@ -90,12 +90,13 @@ class SubjectiveTest:
|
|
90 |
return questions
|
91 |
|
92 |
# Example usage
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
99 |
|
100 |
Quiz = st.form("Quiz")
|
101 |
st.toast("Filtering Questions", icon='β
')
|
|
|
90 |
return questions
|
91 |
|
92 |
# Example usage
|
93 |
+
if sub:
|
94 |
+
data = ' '.join(paragraphs)
|
95 |
+
noOfQues = 5
|
96 |
+
st.toast("Creating Questions", icon='β
')
|
97 |
+
subjective_generator = SubjectiveTest(data, noOfQues)
|
98 |
+
question_list = subjective_generator.generate_test("")
|
99 |
+
questions = []
|
100 |
|
101 |
Quiz = st.form("Quiz")
|
102 |
st.toast("Filtering Questions", icon='β
')
|