Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,13 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
|
|
76 |
if qtype == "Unspecified":
|
77 |
qtype = "Multiple-choice/Fill-in-the-blank/Short-answer/True-False"
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
# 組合年級與學期的描述字串,例如 "一"年級_"上"學期
|
80 |
grade_semester = f"{grades[grade]}年級_{terms[term]}學期"
|
81 |
|
|
|
76 |
if qtype == "Unspecified":
|
77 |
qtype = "Multiple-choice/Fill-in-the-blank/Short-answer/True-False"
|
78 |
|
79 |
+
print(f"""
|
80 |
+
Grade = {grade}
|
81 |
+
Term = {term}
|
82 |
+
QType = {qtype}
|
83 |
+
NumQuestions = {num_questions}
|
84 |
+
""")
|
85 |
+
|
86 |
# 組合年級與學期的描述字串,例如 "一"年級_"上"學期
|
87 |
grade_semester = f"{grades[grade]}年級_{terms[term]}學期"
|
88 |
|