jvictoria commited on
Commit
0ef1241
1 Parent(s): 27bde80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,9 +19,9 @@ def CustomChatGPT(user_input):
19
  return "I'm sorry, I cannot write an essay for you."
20
 
21
  # Clear the messages list before adding new messages
22
- messages = [{"role": "system", "content": "You are an education expert who can correct essays. You are bilingual in English and Japanese"}]
23
 
24
- user_message = {"role": "user", "content": f"Step 1, find errors on the essay's logic. Focus mainly on how well the sentences are connected to each other and proper use of discourse markers. You do not need to worry about grammatical mistakes. You do not have to correct the essay either. Step 3, Explain in detail all the errors from what I originally wrote. Put each explanation in a bullet point. You do not need to edit the essay, just explain everything wrong with it: [{user_input}]"}
25
 
26
  messages.append(user_message)
27
 
 
19
  return "I'm sorry, I cannot write an essay for you."
20
 
21
  # Clear the messages list before adding new messages
22
+ messages = [{"role": "system", "content": "You are an education expert who can correct English writing. You are bilingual in English and Japanese"}]
23
 
24
+ user_message = {"role": "user", "content": f"Step 1, find errors on the composition's logic. Focus mainly on how well the sentences are connected to each other and proper use of discourse markers. You do not need to worry about grammatical mistakes. You do not have to correct the composition either. Step 3, Explain in detail all the errors from what I originally wrote. Put each explanation in a bullet point. You do not need to edit the essay, just explain everything wrong with it: [{user_input}]"}
25
 
26
  messages.append(user_message)
27