Spaces:
Running
Running
ycy
commited on
Commit
·
fc2631e
1
Parent(s):
97ad4a2
- src/about.py +8 -10
src/about.py
CHANGED
|
@@ -39,22 +39,20 @@ TITLE = """
|
|
| 39 |
# introduction text
|
| 40 |
|
| 41 |
def get_INTRODUCTION_TEXT(model_num: int, LAST_UPDATED: str, paper_link="TODO"):
|
| 42 |
-
LAST_UPDATED = LAST_UPDATED.split(" ")[0] #
|
| 43 |
return f"""
|
| 44 |
-
<div style="display: flex; flex-wrap: wrap; gap:
|
| 45 |
<!-- Paper icon with custom link -->
|
| 46 |
-
<a href="{paper_link}" target="_blank"
|
| 47 |
-
|
| 48 |
-
<span>Read the Paper</span>
|
| 49 |
</a>
|
| 50 |
-
<span style="margin: 0
|
| 51 |
-
<span style="font-weight: bold;
|
| 52 |
-
<span style="margin: 0
|
| 53 |
-
<span style="font-weight: bold;
|
| 54 |
</div>
|
| 55 |
"""
|
| 56 |
|
| 57 |
-
|
| 58 |
#TODO
|
| 59 |
INTRODUCE_BENCHMARK = f"""
|
| 60 |
<h2 style="color: #2c3e50;"> Introduction #TODO</h2>
|
|
|
|
| 39 |
# introduction text
|
| 40 |
|
| 41 |
def get_INTRODUCTION_TEXT(model_num: int, LAST_UPDATED: str, paper_link="TODO"):
|
| 42 |
+
LAST_UPDATED = LAST_UPDATED.split(" ")[0] # 只保留到“年-月-日”
|
| 43 |
return f"""
|
| 44 |
+
<div style="display: flex; flex-wrap: wrap; gap: 10px; align-items: center;">
|
| 45 |
<!-- Paper icon with custom link -->
|
| 46 |
+
<a href="{paper_link}" target="_blank">
|
| 47 |
+
📑 Paper
|
|
|
|
| 48 |
</a>
|
| 49 |
+
<span style="margin: 0 10px;">|</span>
|
| 50 |
+
<span style="font-weight: bold;">MODELS:</span> {model_num}
|
| 51 |
+
<span style="margin: 0 10px;">|</span>
|
| 52 |
+
<span style="font-weight: bold;">UPDATED:</span> {LAST_UPDATED}
|
| 53 |
</div>
|
| 54 |
"""
|
| 55 |
|
|
|
|
| 56 |
#TODO
|
| 57 |
INTRODUCE_BENCHMARK = f"""
|
| 58 |
<h2 style="color: #2c3e50;"> Introduction #TODO</h2>
|