Spaces:
Running
Running
Update app.py
#67
by
Muthuraja18
- opened
app.py
CHANGED
|
@@ -764,7 +764,7 @@ def create_game(topics=None, num_questions=5, auto_close=True, ai_topic=None):
|
|
| 764 |
|
| 765 |
# Add AI-generated questions if provided
|
| 766 |
if ai_topic:
|
| 767 |
-
ai_questions = generate_ai_questions(ai_topic,
|
| 768 |
if ai_questions:
|
| 769 |
game_dict["questions"].extend(ai_questions)
|
| 770 |
else:
|
|
|
|
| 764 |
|
| 765 |
# Add AI-generated questions if provided
|
| 766 |
if ai_topic:
|
| 767 |
+
ai_questions = generate_ai_questions(ai_topic, num_questions=num_questions)
|
| 768 |
if ai_questions:
|
| 769 |
game_dict["questions"].extend(ai_questions)
|
| 770 |
else:
|