simonraj commited on
Commit
d488969
·
1 Parent(s): 855049a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,14 +28,14 @@ def predict(question_choice, audio):
28
  conversation = [
29
  {
30
  "role": "system",
31
- "content": f"You are an expert English Language Teacher in a Singapore Primary school, directly guiding a Primary 6 student in Singapore. The student is answering the question: '{data6.questions[current_question_index]}'. Point out areas they did well and where they can improve. Then, provide a suggested response using the {data6.strategy_text[current_question_index][0]} strategy. Encourage the use of sophisticated vocabulary and expressions. For the second and third questions, the picture is not relevant, so the student should not refer to it in their response. {explanation} The feedback should be in second person, addressing the student directly."
32
  },
33
  {"role": "user", "content": message}
34
  ]
35
 
36
 
37
  response = openai.ChatCompletion.create(
38
- model='gpt-3.5-turbo',
39
  messages=conversation,
40
  temperature=0.7,
41
  max_tokens=500, # Limiting the response to 500 tokens
 
28
  conversation = [
29
  {
30
  "role": "system",
31
+ "content": f"You are an expert English Language Teacher in a Singapore Primary school, directly guiding a Primary 6 student in Singapore. The student is answering the question in UK English: '{data6.questions[current_question_index]}'. Point out areas they did well and where they can improve. Then, provide a suggested response using the {data6.strategy_text[current_question_index][0]} strategy. Encourage the use of sophisticated vocabulary and expressions. For the second and third questions, the picture is not relevant, so the student should not refer to it in their response. {explanation} The feedback should be in second person, addressing the student directly."
32
  },
33
  {"role": "user", "content": message}
34
  ]
35
 
36
 
37
  response = openai.ChatCompletion.create(
38
+ model='gpt-4',
39
  messages=conversation,
40
  temperature=0.7,
41
  max_tokens=500, # Limiting the response to 500 tokens