ColeGuion commited on
Commit
62e2cc7
·
verified ·
1 Parent(s): c0cb522

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,10 +52,10 @@ def format_prompt_grammar(message):
52
  prompt = "<s>"
53
 
54
  # String to add before every prompt
55
- prompt_prefix = "Correct any grammatical errors in the following sentence and provide the corrected version:\nSentence:"
56
  prompt_template = "[INST] " + prompt_prefix + ' {} [/INST]'
57
 
58
- history = [["It is my friends house in England.", "It is my friend's house in England."], ["Every girl must bring their books to school.", "Every girl must bring her books to school."]]
59
 
60
  # Iterates through every past user input and response to be added to the prompt
61
  for user_prompt, bot_response in history:
 
52
  prompt = "<s>"
53
 
54
  # String to add before every prompt
55
+ prompt_prefix = "Correct any grammatical errors in the following sentence and provide the corrected version:"
56
  prompt_template = "[INST] " + prompt_prefix + ' {} [/INST]'
57
 
58
+ history = [["It is my friends house in England.", "It is my friend's house in England."], ["Every girl must bring their books to school.", "Every girl must bring her books to school."], ["I have been to New York last summer.", "I went to New York last summer."]]
59
 
60
  # Iterates through every past user input and response to be added to the prompt
61
  for user_prompt, bot_response in history: