Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,18 +138,17 @@ def show_preds_image(image_path,model_selection):
|
|
| 138 |
</body>
|
| 139 |
</html>
|
| 140 |
'''
|
| 141 |
-
|
| 142 |
pdf = FPDF()
|
| 143 |
pdf.add_page()
|
| 144 |
pdf.image(image_path, x=10, y=10, w=190)
|
| 145 |
pdf.set_font("Arial", style='B', size=16)
|
| 146 |
pdf.ln(110)
|
| 147 |
-
pdf.cell(0, 10, f"Prediction: {
|
| 148 |
pdf.set_font("Arial", size=12)
|
| 149 |
pdf.ln(10)
|
| 150 |
-
pdf.multi_cell(0, 10,
|
| 151 |
pdf.ln(10)
|
| 152 |
-
pdf.multi_cell(0, 10,
|
| 153 |
pdf_buffer = BytesIO()
|
| 154 |
pdf.output(pdf_buffer)
|
| 155 |
pdf_buffer.seek(0)
|
|
|
|
| 138 |
</body>
|
| 139 |
</html>
|
| 140 |
'''
|
|
|
|
| 141 |
pdf = FPDF()
|
| 142 |
pdf.add_page()
|
| 143 |
pdf.image(image_path, x=10, y=10, w=190)
|
| 144 |
pdf.set_font("Arial", style='B', size=16)
|
| 145 |
pdf.ln(110)
|
| 146 |
+
pdf.cell(0, 10, f"Prediction: {mux_value}", ln=True, align='C')
|
| 147 |
pdf.set_font("Arial", size=12)
|
| 148 |
pdf.ln(10)
|
| 149 |
+
pdf.multi_cell(0, 10, informations)
|
| 150 |
pdf.ln(10)
|
| 151 |
+
pdf.multi_cell(0, 10, link_info)
|
| 152 |
pdf_buffer = BytesIO()
|
| 153 |
pdf.output(pdf_buffer)
|
| 154 |
pdf_buffer.seek(0)
|