Update app.py
Browse files
app.py
CHANGED
|
@@ -108,16 +108,4 @@ Species List:
|
|
| 108 |
links = get_species_links(sp)
|
| 109 |
all_links_text += "\n".join(links) + "\n"
|
| 110 |
|
| 111 |
-
|
| 112 |
-
pdf = FPDF()
|
| 113 |
-
pdf.add_page()
|
| 114 |
-
pdf.set_font("Arial", size=12)
|
| 115 |
-
|
| 116 |
-
for line in final_text.split("\n"):
|
| 117 |
-
line = line.encode("latin-1", "ignore").decode("latin-1")
|
| 118 |
-
pdf.multi_cell(0, 10, line)
|
| 119 |
-
|
| 120 |
-
pdf.output("report.pdf")
|
| 121 |
-
|
| 122 |
-
with open("report.pdf", "rb") as f:
|
| 123 |
-
st.download_button("Download PDF", f, "report.pdf")
|
|
|
|
| 108 |
links = get_species_links(sp)
|
| 109 |
all_links_text += "\n".join(links) + "\n"
|
| 110 |
|
| 111 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|