Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from backend import get_question
|
|
| 3 |
|
| 4 |
def generate(context, qtype, difficulty, num):
|
| 5 |
try:
|
| 6 |
-
return "\n\n".join(get_question(
|
| 7 |
except Exception as e:
|
| 8 |
return f"Error: {str(e)}"
|
| 9 |
|
|
|
|
| 3 |
|
| 4 |
def generate(context, qtype, difficulty, num):
|
| 5 |
try:
|
| 6 |
+
return "\n\n".join(get_question(qtype, difficulty, context, "", num))
|
| 7 |
except Exception as e:
|
| 8 |
return f"Error: {str(e)}"
|
| 9 |
|