BillBojangeles2000 commited on
Commit
b3be0d5
β€’
1 Parent(s): d028ca3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -90,12 +90,13 @@ class SubjectiveTest:
90
  return questions
91
 
92
  # Example usage
93
- data = ' '.join(paragraphs)
94
- noOfQues = 5
95
- st.toast("Creating Questions", icon='βœ…')
96
- subjective_generator = SubjectiveTest(data, noOfQues)
97
- question_list = subjective_generator.generate_test("")
98
- questions = []
 
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='βœ…')