simonraj commited on
Commit
53b5552
·
1 Parent(s): a1aa33d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -32,7 +32,10 @@ def intelligent_tutor(audio_file, provide_hints=False):
32
  global user_input_counter
33
  global conversation_history
34
 
35
- if provide_hints:
 
 
 
36
  # If hints are requested, provide guidance on how to answer using the strategy text
37
  hint_message = f"Consider using the {strategy_text[current_question_index]} to answer the question: '{questions[current_question_index]}'."
38
  return f"Respond to this Question: {questions[current_question_index]}", hint_message
 
32
  global user_input_counter
33
  global conversation_history
34
 
35
+ input_text = transcribe_audio(audio_file)
36
+ current_question = questions[current_question_index]
37
+
38
+ if provide_hints:
39
  # If hints are requested, provide guidance on how to answer using the strategy text
40
  hint_message = f"Consider using the {strategy_text[current_question_index]} to answer the question: '{questions[current_question_index]}'."
41
  return f"Respond to this Question: {questions[current_question_index]}", hint_message