ColeGuion commited on
Commit
e9c195f
·
verified ·
1 Parent(s): b2631fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def format_prompt(message, history):
35
  #print(f"HISTORIC PROMPT: \n\t[INST] {corrected_prompt} [/INST] {bot_response}</s> ")
36
 
37
  # Also prepend the prefix to the current message
38
- corrected_message = grammar_correction_prefix + message
39
  prompt += f"[INST] {corrected_message} [/INST]"
40
  print("\nPROMPT: \n\t" + prompt)
41
 
@@ -69,7 +69,9 @@ additional_inputs=[
69
 
70
  examples=[['Give me the grammatically correct version of the sentence: "We shood buy an car"', None, None, None, None, None, ],
71
  ["Give me an example exam question testing students on square roots on basic integers", None, None, None, None, None,],
72
- ["Would this block of HTML code run?\n```\n\n```", None, None, None, None, None,], ]
 
 
73
 
74
  gr.ChatInterface(
75
  fn=generate,
 
35
  #print(f"HISTORIC PROMPT: \n\t[INST] {corrected_prompt} [/INST] {bot_response}</s> ")
36
 
37
  # Also prepend the prefix to the current message
38
+ corrected_message = prompt_prefix + message
39
  prompt += f"[INST] {corrected_message} [/INST]"
40
  print("\nPROMPT: \n\t" + prompt)
41
 
 
69
 
70
  examples=[['Give me the grammatically correct version of the sentence: "We shood buy an car"', None, None, None, None, None, ],
71
  ["Give me an example exam question testing students on square roots on basic integers", None, None, None, None, None,],
72
+ ["Would this block of HTML code run?\n```\n\n```", None, None, None, None, None,],
73
+ ["I have been to New York last summer.", None, None, None, None, None,],
74
+ ["We shood buy an car.", None, None, None, None, None,],]
75
 
76
  gr.ChatInterface(
77
  fn=generate,