Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,6 @@ def generate_pdf_report(results):
|
|
109 |
if pdf.get_y() > 250: # If the content is near the bottom of the page
|
110 |
pdf.add_page() # Add a new page
|
111 |
pdf.set_font("Arial", 'B', 16)
|
112 |
-
pdf.set_text_color(0, 0, 0) # Black color for title
|
113 |
pdf.cell(200, 10, txt="AI Powered Requirement Analysis and Defect Detection", ln=True, align='C')
|
114 |
pdf.set_font("Arial", size=12)
|
115 |
pdf.cell(200, 10, txt=f"Report Generated on: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}", ln=True, align='C')
|
@@ -119,9 +118,9 @@ def generate_pdf_report(results):
|
|
119 |
pdf.set_font("Arial", 'B', 14)
|
120 |
pdf.multi_cell(200, 10, txt=f"Requirement R{i}: {result['Requirement']}", align='L')
|
121 |
pdf.set_font("Arial", size=12)
|
122 |
-
pdf.set_text_color(0, 0, 0) # Black color for title
|
123 |
pdf.multi_cell(200, 10, txt=f"Type: {result['Type']}", align='L')
|
124 |
-
pdf.multi_cell(200, 10, txt=f"Domain: {result['
|
|
|
125 |
pdf.multi_cell(200, 10, txt=f"Defects: {result['Defects']}", align='L')
|
126 |
pdf.multi_cell(200, 10, txt=f"Rewritten: {result['Rewritten']}", align='L')
|
127 |
pdf.multi_cell(200, 10, txt="-" * 50, align='L')
|
|
|
109 |
if pdf.get_y() > 250: # If the content is near the bottom of the page
|
110 |
pdf.add_page() # Add a new page
|
111 |
pdf.set_font("Arial", 'B', 16)
|
|
|
112 |
pdf.cell(200, 10, txt="AI Powered Requirement Analysis and Defect Detection", ln=True, align='C')
|
113 |
pdf.set_font("Arial", size=12)
|
114 |
pdf.cell(200, 10, txt=f"Report Generated on: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}", ln=True, align='C')
|
|
|
118 |
pdf.set_font("Arial", 'B', 14)
|
119 |
pdf.multi_cell(200, 10, txt=f"Requirement R{i}: {result['Requirement']}", align='L')
|
120 |
pdf.set_font("Arial", size=12)
|
|
|
121 |
pdf.multi_cell(200, 10, txt=f"Type: {result['Type']}", align='L')
|
122 |
+
pdf.multi_cell(200, 10, txt=f"Domain: {result['domain']}", align='L')
|
123 |
+
pdf.multi_cell(200, 10, txt=f"Stakeholders: {result['Stakeholders']}", align='L')
|
124 |
pdf.multi_cell(200, 10, txt=f"Defects: {result['Defects']}", align='L')
|
125 |
pdf.multi_cell(200, 10, txt=f"Rewritten: {result['Rewritten']}", align='L')
|
126 |
pdf.multi_cell(200, 10, txt="-" * 50, align='L')
|