Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,8 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
|
|
| 42 |
|
| 43 |
raw_questions.append(open(f"{output_dir}/md/{filename}").read())
|
| 44 |
|
|
|
|
|
|
|
| 45 |
# 隨機選取並限制字串長度的題庫內容
|
| 46 |
input_question_bank = random_questions_with_limit(raw_questions, 20000)
|
| 47 |
|
|
|
|
| 42 |
|
| 43 |
raw_questions.append(open(f"{output_dir}/md/{filename}").read())
|
| 44 |
|
| 45 |
+
print(len(raw_questions))
|
| 46 |
+
|
| 47 |
# 隨機選取並限制字串長度的題庫內容
|
| 48 |
input_question_bank = random_questions_with_limit(raw_questions, 20000)
|
| 49 |
|