Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,10 +160,11 @@ def update_topics(subject, grade):
|
|
| 160 |
return gr.update(choices=chapters, value=chapters[0] if chapters else None)
|
| 161 |
|
| 162 |
|
| 163 |
-
def
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
|
|
|
| 167 |
for i in range(1, num_questions+1):
|
| 168 |
mcqs.append(f"{i}. MCQ for {subject} - {chapter} (Difficulty: {difficulty})")
|
| 169 |
answers.append("A") # Placeholder
|
|
|
|
| 160 |
return gr.update(choices=chapters, value=chapters[0] if chapters else None)
|
| 161 |
|
| 162 |
|
| 163 |
+
def on_generate(grade, subject, chapter, difficulty, num_questions):
|
| 164 |
+
mcqs = []
|
| 165 |
+
answers = []
|
| 166 |
+
# your function code here
|
| 167 |
+
|
| 168 |
for i in range(1, num_questions+1):
|
| 169 |
mcqs.append(f"{i}. MCQ for {subject} - {chapter} (Difficulty: {difficulty})")
|
| 170 |
answers.append("A") # Placeholder
|