ruslanmv commited on
Commit
c81f439
1 Parent(s): ab52f60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 + 1}:** {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
 
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