Update app.py
Browse files
app.py
CHANGED
|
@@ -238,7 +238,7 @@ def generate_pdf_report(original_img: Image.Image, mask: np.ndarray, overlay: Im
|
|
| 238 |
pdf.cell(text="This report was generated by DR Analysis System", new_x="LMARGIN", new_y="NEXT", align='C')
|
| 239 |
|
| 240 |
# Get PDF as bytes - updated for fpdf2>=2.7.6
|
| 241 |
-
pdf_bytes = pdf.output()
|
| 242 |
return pdf_bytes
|
| 243 |
|
| 244 |
except Exception as e:
|
|
|
|
| 238 |
pdf.cell(text="This report was generated by DR Analysis System", new_x="LMARGIN", new_y="NEXT", align='C')
|
| 239 |
|
| 240 |
# Get PDF as bytes - updated for fpdf2>=2.7.6
|
| 241 |
+
pdf_bytes = bytes(pdf.output()) # Returns bytes directly in newer versions
|
| 242 |
return pdf_bytes
|
| 243 |
|
| 244 |
except Exception as e:
|