Update utils.py
Browse files
utils.py
CHANGED
|
@@ -4,7 +4,7 @@ import numpy as np
|
|
| 4 |
from datetime import datetime
|
| 5 |
|
| 6 |
def gen_link():
|
| 7 |
-
if
|
| 8 |
# AMC
|
| 9 |
np.random.seed()
|
| 10 |
year = np.random.randint(2015, 2023)
|
|
@@ -81,7 +81,7 @@ def gen_html(num):
|
|
| 81 |
font-family: Arial, sans-serif;
|
| 82 |
font-size: 12pt;
|
| 83 |
}}
|
| 84 |
-
.
|
| 85 |
font-size: 12pt; /* Ensure math font size matches the body text size */
|
| 86 |
}}
|
| 87 |
</style>
|
|
@@ -91,4 +91,4 @@ def gen_html(num):
|
|
| 91 |
</body>
|
| 92 |
</html>
|
| 93 |
'''
|
| 94 |
-
return all_q
|
|
|
|
| 4 |
from datetime import datetime
|
| 5 |
|
| 6 |
def gen_link():
|
| 7 |
+
if np.random.choice([True, False]):
|
| 8 |
# AMC
|
| 9 |
np.random.seed()
|
| 10 |
year = np.random.randint(2015, 2023)
|
|
|
|
| 81 |
font-family: Arial, sans-serif;
|
| 82 |
font-size: 12pt;
|
| 83 |
}}
|
| 84 |
+
img.latex {{
|
| 85 |
font-size: 12pt; /* Ensure math font size matches the body text size */
|
| 86 |
}}
|
| 87 |
</style>
|
|
|
|
| 91 |
</body>
|
| 92 |
</html>
|
| 93 |
'''
|
| 94 |
+
return all_q
|