Spaces:
Sleeping
Sleeping
DishaKushwah
commited on
Commit
·
eb18c95
1
Parent(s):
c693026
Update truefalse_quiz.py
Browse files- truefalse_quiz.py +2 -2
truefalse_quiz.py
CHANGED
@@ -6,7 +6,7 @@ nltk.download('punkt_tab', quiet=True)
|
|
6 |
# Load NLI model
|
7 |
nli = pipeline("text-classification", model="facebook/bart-large-mnli")
|
8 |
|
9 |
-
class
|
10 |
def __init__(self):
|
11 |
pass
|
12 |
def validate_inputs(self, context, num_questions, difficulty):
|
@@ -89,7 +89,7 @@ class QuizGenerator:
|
|
89 |
print(f"Error: {e}")
|
90 |
|
91 |
def main():
|
92 |
-
quiz_generator =
|
93 |
quiz_generator.run_quiz()
|
94 |
|
95 |
if __name__ == "__main__":
|
|
|
6 |
# Load NLI model
|
7 |
nli = pipeline("text-classification", model="facebook/bart-large-mnli")
|
8 |
|
9 |
+
class generate_true_false:
|
10 |
def __init__(self):
|
11 |
pass
|
12 |
def validate_inputs(self, context, num_questions, difficulty):
|
|
|
89 |
print(f"Error: {e}")
|
90 |
|
91 |
def main():
|
92 |
+
quiz_generator = generate_true_false()
|
93 |
quiz_generator.run_quiz()
|
94 |
|
95 |
if __name__ == "__main__":
|