Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,14 +36,13 @@ def intelligent_tutor(audio_file, provide_hints=False):
|
|
36 |
current_question = questions[current_question_index]
|
37 |
|
38 |
if provide_hints:
|
39 |
-
|
40 |
-
|
41 |
-
return f"Respond to this Question: {questions[current_question_index]}", hint_message
|
42 |
|
43 |
conversation = [
|
44 |
{
|
45 |
"role": "system",
|
46 |
-
"content": f"You are an expert
|
47 |
},
|
48 |
{"role": "user", "content": input_text}
|
49 |
]
|
|
|
36 |
current_question = questions[current_question_index]
|
37 |
|
38 |
if provide_hints:
|
39 |
+
hint_message = f"[Tamil translation of: Consider using the {strategy_text[current_question_index]} to answer the question: '{questions[current_question_index]}']." # Translate to Tamil
|
40 |
+
return f"[Tamil translation of: Respond to this Question: {questions[current_question_index]}]", hint_message
|
|
|
41 |
|
42 |
conversation = [
|
43 |
{
|
44 |
"role": "system",
|
45 |
+
"content": f"[Tamil translation of: You are an expert Tamil Language Teacher guiding a student. The student is answering the question: '{questions[current_question_index]}'. Based on their response, provide direct feedback to help them improve their spoken skills. Emphasize areas of strength, suggest areas of improvement, and guide them on how to better answer using the {strategy_text[current_question_index]} strategy. The feedback should be in second person, addressing the student directly.]"
|
46 |
},
|
47 |
{"role": "user", "content": input_text}
|
48 |
]
|