Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- LOGOS_technical_report.pdf +3 -0
- index.html +60 -18
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
LOGOS_technical_report.pdf filter=lfs diff=lfs merge=lfs -text
|
LOGOS_technical_report.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91f2c58a75c05aea5cddcc4991f3444e766364a43e3ed919b0c50e25265becf2
|
| 3 |
+
size 13601726
|
index.html
CHANGED
|
@@ -1,19 +1,61 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>LOGOS Technical Report</title>
|
| 7 |
+
<style>
|
| 8 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
+
html, body { min-height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #525659; color: #e8eaed; }
|
| 10 |
+
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #171a21; border-bottom: 1px solid #262b36; }
|
| 11 |
+
.topbar .title { font-size: 15px; font-weight: 600; }
|
| 12 |
+
.topbar a { color: #ffd21e; text-decoration: none; font-size: 13px; padding: 6px 14px; border: 1px solid #ffd21e; border-radius: 6px; transition: all .15s; }
|
| 13 |
+
.topbar a:hover { background: #ffd21e; color: #171a21; }
|
| 14 |
+
#pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 12px; }
|
| 15 |
+
#pages canvas { max-width: 100%; box-shadow: 0 2px 12px rgba(0,0,0,.5); background: #fff; }
|
| 16 |
+
#status { text-align: center; padding: 40px 16px; color: #c8ccd2; font-size: 14px; }
|
| 17 |
+
</style>
|
| 18 |
+
</head>
|
| 19 |
+
<body>
|
| 20 |
+
<div class="topbar">
|
| 21 |
+
<span class="title">📄 LOGOS: Language of Generative Objects in Science — Technical Report</span>
|
| 22 |
+
<a href="https://huggingface.co/spaces/LOGOS-Hub/LOGOS-Technical-Report/resolve/main/LOGOS_technical_report.pdf?download=true" target="_blank" rel="noopener">Download PDF</a>
|
| 23 |
+
</div>
|
| 24 |
+
<div id="status">Loading report…</div>
|
| 25 |
+
<div id="pages"></div>
|
| 26 |
+
|
| 27 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script>
|
| 28 |
+
<script>
|
| 29 |
+
const PDF_URL = "LOGOS_technical_report.pdf";
|
| 30 |
+
const statusEl = document.getElementById("status");
|
| 31 |
+
const pagesEl = document.getElementById("pages");
|
| 32 |
+
|
| 33 |
+
if (!window.pdfjsLib) {
|
| 34 |
+
statusEl.textContent = "Failed to load PDF renderer. Please use the Download PDF button.";
|
| 35 |
+
} else {
|
| 36 |
+
pdfjsLib.GlobalWorkerOptions.workerSrc =
|
| 37 |
+
"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";
|
| 38 |
+
|
| 39 |
+
const scale = Math.min(2, (window.devicePixelRatio || 1) * 1.5);
|
| 40 |
+
|
| 41 |
+
pdfjsLib.getDocument({ url: PDF_URL }).promise.then(async (pdf) => {
|
| 42 |
+
statusEl.style.display = "none";
|
| 43 |
+
for (let n = 1; n <= pdf.numPages; n++) {
|
| 44 |
+
const page = await pdf.getPage(n);
|
| 45 |
+
const viewport = page.getViewport({ scale });
|
| 46 |
+
const canvas = document.createElement("canvas");
|
| 47 |
+
const ctx = canvas.getContext("2d");
|
| 48 |
+
canvas.width = viewport.width;
|
| 49 |
+
canvas.height = viewport.height;
|
| 50 |
+
canvas.style.width = (viewport.width / scale) + "px";
|
| 51 |
+
pagesEl.appendChild(canvas);
|
| 52 |
+
await page.render({ canvasContext: ctx, viewport }).promise;
|
| 53 |
+
}
|
| 54 |
+
}).catch((err) => {
|
| 55 |
+
statusEl.textContent = "Could not render the PDF in-browser. Please use the Download PDF button above.";
|
| 56 |
+
console.error(err);
|
| 57 |
+
});
|
| 58 |
+
}
|
| 59 |
+
</script>
|
| 60 |
+
</body>
|
| 61 |
</html>
|