jvictoria commited on
Commit
6a8f721
1 Parent(s): fc24692

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def correct_and_recommend(user_answer, points):
22
  messages=[
23
  {"role": "system", "content": "You are an academic writing teacher. Follow this rubric: 1) Give three reasons to support the answer. 2) It should follow this structure: 1 Introductory Paragraph, 3 Body Paragraphs, and 1 Concluding Paragraph. 3) The length should be 200-240 words. 4) The introductory paragraph should include a status quo and relate it to the author's thesis statement. 5) The paragraphs should make use of complex sentences. 6) The paragraphs should make use of discourse markers."},
24
  {"role": "user", "content": f"Correct the grammar and spelling of this answer: {user_answer}"},
25
- {"role": "user", "content": "Give recommendations on how to improve this answer according to the rubric, and provide specific examples from the essay for each recommendation."}
26
  ]
27
  )
28
  ChatGPT_reply = response["choices"][0]["message"]["content"]
 
22
  messages=[
23
  {"role": "system", "content": "You are an academic writing teacher. Follow this rubric: 1) Give three reasons to support the answer. 2) It should follow this structure: 1 Introductory Paragraph, 3 Body Paragraphs, and 1 Concluding Paragraph. 3) The length should be 200-240 words. 4) The introductory paragraph should include a status quo and relate it to the author's thesis statement. 5) The paragraphs should make use of complex sentences. 6) The paragraphs should make use of discourse markers."},
24
  {"role": "user", "content": f"Correct the grammar and spelling of this answer: {user_answer}"},
25
+ {"role": "user", "content": "Give recommendations on how to improve this answer according to the rubric, and provide specific examples from the essay for each recommendation. Make grammatical, spelling, punctuation, and spelling corrections where necessary."}
26
  ]
27
  )
28
  ChatGPT_reply = response["choices"][0]["message"]["content"]