Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def display_question(index, audio_enabled):
|
|
50 |
if index < 0 or index >= len(selected_questions):
|
51 |
return "No more questions.", [], None
|
52 |
question_text_ = selected_questions[index].get('question', 'No question text available.')
|
53 |
-
question_text = f"**Question {index
|
54 |
choices_options = selected_questions[index].get('options', [])
|
55 |
audio_path = text_to_speech(question_text_ + " " + " ".join(choices_options)) if audio_enabled else None
|
56 |
return question_text, choices_options, audio_path
|
|
|
50 |
if index < 0 or index >= len(selected_questions):
|
51 |
return "No more questions.", [], None
|
52 |
question_text_ = selected_questions[index].get('question', 'No question text available.')
|
53 |
+
question_text = f"**Question {index }:** {question_text_}"
|
54 |
choices_options = selected_questions[index].get('options', [])
|
55 |
audio_path = text_to_speech(question_text_ + " " + " ".join(choices_options)) if audio_enabled else None
|
56 |
return question_text, choices_options, audio_path
|