BillBojangeles2000 commited on
Commit
5c18853
·
1 Parent(s): fca80c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -110,7 +110,7 @@ class SubjectiveTest:
110
  for ent in sentence.ents:
111
  entity_label = ent.label_
112
  entity_text = ent.text
113
- question_patterns = self.adjust_question_pattern(entity_label, topic is not None)
114
  for pattern in question_patterns:
115
  question = pattern.format(entity=entity_text, topic=topic)
116
  if entity_label in question_answer_dict:
@@ -130,7 +130,7 @@ class SubjectiveTest:
130
  data = ' '.join(paragraphs)
131
  noOfQues = 5
132
 
133
- subjective_generator = SubjectiveTest(data, noOfQues)
134
 
135
  # Create a form for the quiz
136
  st.write("Fill out the quiz:")
 
110
  for ent in sentence.ents:
111
  entity_label = ent.label_
112
  entity_text = ent.text
113
+ question_patterns = self.adjust_question_pattern(entity_label,"")
114
  for pattern in question_patterns:
115
  question = pattern.format(entity=entity_text, topic=topic)
116
  if entity_label in question_answer_dict:
 
130
  data = ' '.join(paragraphs)
131
  noOfQues = 5
132
 
133
+ questions = SubjectiveTest(data, noOfQues)
134
 
135
  # Create a form for the quiz
136
  st.write("Fill out the quiz:")