Spaces:
Runtime error
Runtime error
Commit
·
c30dd36
1
Parent(s):
987bab3
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ if generate_quiz:
|
|
154 |
question_list = subjective_generator.generate_test(topic) # Define 'questions' here
|
155 |
questions = []
|
156 |
for i, question in enumerate(question_list):
|
157 |
-
if "Explain"
|
158 |
questions.append(f"Question: {question}")
|
159 |
|
160 |
for i, question in enumerate(questions):
|
|
|
154 |
question_list = subjective_generator.generate_test(topic) # Define 'questions' here
|
155 |
questions = []
|
156 |
for i, question in enumerate(question_list):
|
157 |
+
if (not "Explain" in question) and (len(tool.check(question)) == 0) and (grammar_sense(question)):
|
158 |
questions.append(f"Question: {question}")
|
159 |
|
160 |
for i, question in enumerate(questions):
|