Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,23 +178,23 @@ from pathlib import Path
|
|
| 178 |
# WRITE CUSTOM CSS FOR FONTS
|
| 179 |
# ==============================
|
| 180 |
|
| 181 |
-
CUSTOM_CSS = """
|
| 182 |
-
@font-face {
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
}
|
| 188 |
-
|
| 189 |
-
html, body, * {
|
| 190 |
-
|
| 191 |
-
}
|
| 192 |
-
"""
|
| 193 |
-
|
| 194 |
-
# Optionally write the CSS file if needed (not required for inline css)
|
| 195 |
-
if not os.path.exists("custom.css"):
|
| 196 |
-
|
| 197 |
-
|
| 198 |
# ==============================
|
| 199 |
|
| 200 |
try:
|
|
|
|
| 178 |
# WRITE CUSTOM CSS FOR FONTS
|
| 179 |
# ==============================
|
| 180 |
|
| 181 |
+
# CUSTOM_CSS = """
|
| 182 |
+
# @font-face {
|
| 183 |
+
# font-family: 'NotoSansMath';
|
| 184 |
+
# src: url('./NotoSansMath-Regular.ttf') format('truetype');
|
| 185 |
+
# font-weight: normal;
|
| 186 |
+
# font-style: normal;
|
| 187 |
+
# }
|
| 188 |
+
|
| 189 |
+
# html, body, * {
|
| 190 |
+
# font-family: 'NotoSansMath', sans-serif !important;
|
| 191 |
+
# }
|
| 192 |
+
# """
|
| 193 |
+
|
| 194 |
+
# # Optionally write the CSS file if needed (not required for inline css)
|
| 195 |
+
# if not os.path.exists("custom.css"):
|
| 196 |
+
# with open("custom.css", "w") as f:
|
| 197 |
+
# f.write(CUSTOM_CSS)
|
| 198 |
# ==============================
|
| 199 |
|
| 200 |
try:
|