Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ SUBJECT_SUBTOPICS = {
|
|
64 |
"optimization",
|
65 |
"stokes theorem",
|
66 |
"green's theorem",
|
67 |
-
"line
|
68 |
"parametric equations",
|
69 |
"spherical coordinates"
|
70 |
],
|
@@ -824,7 +824,7 @@ def generate_question(subject, difficulty, question_type, subtopic, use_enhancem
|
|
824 |
|
825 |
request_history.append(now)
|
826 |
|
827 |
-
selected_topic = subtopic
|
828 |
logger.debug(f"Using selected subtopic: {selected_topic}")
|
829 |
|
830 |
difficulty_params = get_difficulty_parameters(difficulty)
|
|
|
64 |
"optimization",
|
65 |
"stokes theorem",
|
66 |
"green's theorem",
|
67 |
+
"line integrals",
|
68 |
"parametric equations",
|
69 |
"spherical coordinates"
|
70 |
],
|
|
|
824 |
|
825 |
request_history.append(now)
|
826 |
|
827 |
+
selected_topic = subtopic if subtopic else random.choice(SUBJECT_SUBTOPICS[subject])
|
828 |
logger.debug(f"Using selected subtopic: {selected_topic}")
|
829 |
|
830 |
difficulty_params = get_difficulty_parameters(difficulty)
|