Spaces:
Runtime error
Runtime error
Download utils/export.py from Sivainti/bobby-deva: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/Sivainti/bobby-deva/resolve/main/utils/export.py
- Command line
-
hf download hf://spaces/Sivainti/bobby-deva/utils/export.py
-
curl -L -o export.py https://huggingface.co/spaces/Sivainti/bobby-deva/resolve/main/utils/export.py
323 Bytes
| from reportlab.lib.pagesizes import letter | |
| from reportlab.pdfgen import canvas | |
| def export_summary_pdf(summary_text): | |
| filename = "project_summary.pdf" | |
| c = canvas.Canvas(filename, pagesize=letter) | |
| c.drawString(100, 750, "Project Summary") | |
| c.drawString(100, 730, summary_text) | |
| c.save() | |
| return filename |