Buckets:

Mercity/FluxDistill / scripts /render_quant_report.py
Pranav2748's picture
download
raw
519 Bytes
"""Render report/QUANT_REPORT_FULL.md -> report/QUANT_REPORT_FULL.pdf via markdown+weasyprint."""
import markdown
from weasyprint import HTML
SRC = "report/QUANT_REPORT_FULL.md"
CSS = "report/style.css"
OUT = "report/QUANT_REPORT_FULL.pdf"
md = open(SRC).read()
body = markdown.markdown(md, extensions=["tables", "fenced_code"])
css = open(CSS).read()
html = f"<html><head><meta charset='utf-8'><style>{css}</style></head><body>{body}</body></html>"
HTML(string=html, base_url=".").write_pdf(OUT)
print("wrote", OUT)

Xet Storage Details

Size:
519 Bytes
·
Xet hash:
2f9ee611653a810c2aa6cdf90070945b2e7c820ed65e3f800c924199fa97ced1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.