ShivanshMathur007 commited on
Commit
b4185a6
1 Parent(s): 51081c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,7 +36,7 @@ def MOP(path):
36
  message= f"""<s> [INST] You have two documents:
37
 
38
  Template Document: "Dummy_standard MoP_template_new.pdf"
39
- Content Document: {prompt_file}
40
 
41
  Your task is to determine whether the Content Document effectively incorporates the context and instructions of the Pre-Check Procedures and Post-Check Procedures specified in the Template Document, without the requirement for them to be under specified labels. The focus should be on the presence of the context and instructions rather than their exact placement.
42
 
@@ -47,10 +47,10 @@ Additionally, identify any missing elements related to the context and instructi
47
  Instructions:
48
 
49
  Review the context and instructions of the Pre-Check Procedures and Post-Check Procedures detailed in the Template Document ("Dummy_standard MoP_template_new.pdf").
50
- Assess whether the Content Document ({prompt_file}) includes the necessary context and instructions for the Pre-Check Procedures and Post-Check Procedures, regardless of their specific placement or labeling.
51
  Provide a "Yes" if the Content Document adequately integrates the context and instructions of the Pre-Check Procedures and Post-Check Procedures, or "No" if there are significant gaps or omissions.
52
  If the answer is "No," specify any missing elements related to the context and instructions of the Pre-Check Procedures and Post-Check Procedures, emphasizing their importance in the Content Document.
53
- Ensure careful consideration of the context and instructions provided in the Template Document ("Dummy_standard MoP_template_new.pdf") while evaluating the alignment of the Content Document ({prompt_file}). [/INST] </s>"""
54
  result=qa.run(message)
55
  pattern = r"Helpful Answer:\n\n(.*)"
56
  match = re.search(pattern, result, re.DOTALL)
 
36
  message= f"""<s> [INST] You have two documents:
37
 
38
  Template Document: "Dummy_standard MoP_template_new.pdf"
39
+ Content Document: "{prompt_file}"
40
 
41
  Your task is to determine whether the Content Document effectively incorporates the context and instructions of the Pre-Check Procedures and Post-Check Procedures specified in the Template Document, without the requirement for them to be under specified labels. The focus should be on the presence of the context and instructions rather than their exact placement.
42
 
 
47
  Instructions:
48
 
49
  Review the context and instructions of the Pre-Check Procedures and Post-Check Procedures detailed in the Template Document ("Dummy_standard MoP_template_new.pdf").
50
+ Assess whether the Content Document ("{prompt_file}") includes the necessary context and instructions for the Pre-Check Procedures and Post-Check Procedures, regardless of their specific placement or labeling.
51
  Provide a "Yes" if the Content Document adequately integrates the context and instructions of the Pre-Check Procedures and Post-Check Procedures, or "No" if there are significant gaps or omissions.
52
  If the answer is "No," specify any missing elements related to the context and instructions of the Pre-Check Procedures and Post-Check Procedures, emphasizing their importance in the Content Document.
53
+ Ensure careful consideration of the context and instructions provided in the Template Document ("Dummy_standard MoP_template_new.pdf") while evaluating the alignment of the Content Document ("{prompt_file}"). [/INST] </s>"""
54
  result=qa.run(message)
55
  pattern = r"Helpful Answer:\n\n(.*)"
56
  match = re.search(pattern, result, re.DOTALL)