jvictoria commited on
Commit
b9b1055
·
1 Parent(s): efc3cbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def CustomChatGPT(user_input):
21
  # Clear the messages list before adding new messages
22
  messages = [{"role": "system", "content": "You are an education expert who can explain grammar mistakes. You are bilingual in English and Japanese"}]
23
 
24
- user_message = {"role": "user", "content": f"Step 1: Correct the text I give. Be especially strict when it comes to sentence fragments. All sentences must have at least one independent clause. Step 2: Explain all the grammar and spelling mistakes for an EFL student. Put each explanation in a bullet point: [{user_input}]"}
25
 
26
  messages.append(user_message)
27
 
 
21
  # Clear the messages list before adding new messages
22
  messages = [{"role": "system", "content": "You are an education expert who can explain grammar mistakes. You are bilingual in English and Japanese"}]
23
 
24
+ user_message = {"role": "user", "content": f"Step 1: Correct the text I give. Be especially strict when it comes to sentence fragments. Step 2: Explain all the grammar and spelling mistakes for an EFL student. Put each explanation in a bullet point: [{user_input}]"}
25
 
26
  messages.append(user_message)
27