Spaces:
Running
Running
Commit
·
27b61df
1
Parent(s):
bb8c2a5
add d_code with block
Browse files
main.py
CHANGED
|
@@ -24,7 +24,6 @@ app, rt = fast_app(
|
|
| 24 |
Script(src="https://cdn.plot.ly/plotly-latest.min.js"),
|
| 25 |
Link(rel="stylesheet", href="style.css"),
|
| 26 |
MarkdownJS(),
|
| 27 |
-
HighlightJS(langs=["python", "javascript", "html", "css"]),
|
| 28 |
),
|
| 29 |
)
|
| 30 |
|
|
|
|
| 24 |
Script(src="https://cdn.plot.ly/plotly-latest.min.js"),
|
| 25 |
Link(rel="stylesheet", href="style.css"),
|
| 26 |
MarkdownJS(),
|
|
|
|
| 27 |
),
|
| 28 |
)
|
| 29 |
|
style.css
CHANGED
|
@@ -269,11 +269,3 @@ d-contents nav > ul > li > a:hover {
|
|
| 269 |
background: rgb(255, 255, 255) !important;
|
| 270 |
}
|
| 271 |
|
| 272 |
-
code {
|
| 273 |
-
overflow: auto;
|
| 274 |
-
clear: both;
|
| 275 |
-
height: 200px;
|
| 276 |
-
border: 1px solid #ccc;
|
| 277 |
-
padding: 20px;
|
| 278 |
-
}
|
| 279 |
-
|
|
|
|
| 269 |
background: rgb(255, 255, 255) !important;
|
| 270 |
}
|
| 271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
web.py
CHANGED
|
@@ -7,6 +7,7 @@ from rich import print
|
|
| 7 |
import jsonlines
|
| 8 |
from data.url_blocklist import urls_high_matches, urls_false_positives
|
| 9 |
from data.non_web_urls import non_web_urls
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
def DVS(
|
|
@@ -361,11 +362,7 @@ def web_data():
|
|
| 361 |
that are duplicates, and the fraction of characters contained within those duplicated passages.
|
| 362 |
"""),
|
| 363 |
H6("Implementations from Dolma"),
|
| 364 |
-
|
| 365 |
-
Code(
|
| 366 |
-
dolma311,
|
| 367 |
-
)
|
| 368 |
-
),
|
| 369 |
P("..."), # Add specific implementation details if available
|
| 370 |
H6("Implementations from DataTrove"),
|
| 371 |
P("..."), # Add specific implementation details if available
|
|
|
|
| 7 |
import jsonlines
|
| 8 |
from data.url_blocklist import urls_high_matches, urls_false_positives
|
| 9 |
from data.non_web_urls import non_web_urls
|
| 10 |
+
from fasthtml.components import D_code
|
| 11 |
|
| 12 |
|
| 13 |
def DVS(
|
|
|
|
| 362 |
that are duplicates, and the fraction of characters contained within those duplicated passages.
|
| 363 |
"""),
|
| 364 |
H6("Implementations from Dolma"),
|
| 365 |
+
D_code(dolma311, block="block", language="python"),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
P("..."), # Add specific implementation details if available
|
| 367 |
H6("Implementations from DataTrove"),
|
| 368 |
P("..."), # Add specific implementation details if available
|