edouardlgp commited on
Commit
fb098b5
·
verified ·
1 Parent(s): 43d46fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1050,18 +1050,15 @@ def generate_word_document(json_path: Optional[str]) -> str:
1050
  # Document header
1051
  doc.add_heading('Job Description Analysis Report', level=0)
1052
  doc.add_paragraph(f"Generated on {time.strftime('%Y-%m-%d %H:%M:%S')}")
1053
- doc.add_paragraph("International Organization for Migration", style="Intense Quote")
1054
-
1055
- doc.add_heading('AI DISCLAIMER', level=2)
1056
- doc_para = doc.add_paragraph()
1057
- doc_para.add_run('This document contains material generated by artificial intelligence technology. While efforts have been made to ensure accuracy, please be aware that AI-generated content may not always fully represent the intent or expertise of human-authored material and may contain errors or inaccuracies. An AI model might generate content that sounds plausible but that is either factually incorrect or unrelated to the given context. These unexpected outcomes, also called AI hallucinations, can stem from biases, under-performing information retrieval, lack of real-world understanding, or limitations in training dat
1058
 
 
1059
 
1060
  doc.add_heading('Input Information', level=2)
1061
  doc.add_paragraph(f"File: {result['file']}")
1062
 
1063
  doc.add_paragraph(result['responsibilities'])
1064
-
1065
 
1066
  doc.add_heading('Job Family Classification', level=2)
1067
  doc.add_paragraph(f" {result['classified_job_family']}")
 
1050
  # Document header
1051
  doc.add_heading('Job Description Analysis Report', level=0)
1052
  doc.add_paragraph(f"Generated on {time.strftime('%Y-%m-%d %H:%M:%S')}")
1053
+ doc.add_paragraph("This document contains material generated by artificial intelligence technology. While efforts have been made to ensure accuracy, please be aware that AI-generated content may not always fully represent the intent or expertise of human-authored material and may contain errors or inaccuracies. An AI model might generate content that sounds plausible but that is either factually incorrect or unrelated to the given context. These unexpected outcomes, also called AI hallucinations, can stem from biases, under-performing information retrieval, lack of real-world understanding, or limitations in training data.", style="Intense Quote")
 
 
 
 
1054
 
1055
+
1056
 
1057
  doc.add_heading('Input Information', level=2)
1058
  doc.add_paragraph(f"File: {result['file']}")
1059
 
1060
  doc.add_paragraph(result['responsibilities'])
1061
+ doc.add_page_break()
1062
 
1063
  doc.add_heading('Job Family Classification', level=2)
1064
  doc.add_paragraph(f" {result['classified_job_family']}")