Baskar2005 commited on
Commit
954374b
1 Parent(s): d8b2662

Update incorrect_sentence_finder.py

Browse files
Files changed (1) hide show
  1. incorrect_sentence_finder.py +7 -7
incorrect_sentence_finder.py CHANGED
@@ -28,13 +28,13 @@ class IncorrectSentenceFinder:
28
  str: Grammatically incorrect sentences identified by GPT-3.
29
  """
30
  # Create a request to OpenAI's GPT-3 engine to identify grammatically incorrect sentences.
31
- conversation = [
32
- {"role": "system", "content": "You are a helpful Error sentence finder."},
33
- {"role": "user", "content": f"""list out the grammatical error sentence in the given text:\n{text}
34
- format:
35
- error sentence:finded error sentence
36
- """}
37
- ]
38
 
39
  # Call OpenAI GPT-3.5-turbo
40
  chat_completion =client.chat.completions.create(
 
28
  str: Grammatically incorrect sentences identified by GPT-3.
29
  """
30
  # Create a request to OpenAI's GPT-3 engine to identify grammatically incorrect sentences.
31
+ conversation = [
32
+ {"role": "system", "content": "You are a helpful Error sentence finder."},
33
+ {"role": "user", "content": f"""list out the grammatical error sentence in the given text:\n{text}
34
+ format:
35
+ error sentence:finded error sentence
36
+ """}
37
+ ]
38
 
39
  # Call OpenAI GPT-3.5-turbo
40
  chat_completion =client.chat.completions.create(