mohamedemam commited on
Commit
6f87590
·
verified ·
1 Parent(s): 01481ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model = AutoModelForCausalLM.from_pretrained("nfaheem/Marcoroni-7b-DPO-Merge")
14
  model = PeftModel.from_pretrained(model, "mohamedemam/essay_checker")
15
  model.eval()
16
  def chat_Format(context,quetion,answer):
17
- return "Instruction:\n check answer is true or false of next quetion using context below:\n"+"context: "context+"\nquetion:"+quetion+ f".\n#student answer: "+answer+".\n#response:"
18
  # Create a Wikipedia API instance
19
 
20
 
 
14
  model = PeftModel.from_pretrained(model, "mohamedemam/essay_checker")
15
  model.eval()
16
  def chat_Format(context,quetion,answer):
17
+ return "Instruction:\n check answer is true or false of next quetion using context below:\n"+"context: "+context+"\nquetion:"+quetion+ f".\n#student answer: "+answer+".\n#response:"
18
  # Create a Wikipedia API instance
19
 
20