yan111222 commited on
Commit
1e2fb0a
·
verified ·
1 Parent(s): 08986d9

Update src/about.py

Browse files
Files changed (1) hide show
  1. src/about.py +8 -3
src/about.py CHANGED
@@ -29,16 +29,21 @@ TITLE = """<h1 align="center" id="space-title">VLM Detailed Caption Leaderborad<
29
 
30
  # introduction text
31
 
32
- def get_INTRODUCTION_TEXT(model_num: int, LAST_UPDATED: str, paper_link= "TODO"):
 
33
  return f"""
34
  <div style="display: flex; flex-wrap: wrap; gap: 10px; align-items: center;">
35
  <!-- Paper icon with custom link -->
36
  <a href="{paper_link}" target="_blank">
37
  📑 Paper
38
  </a>
39
- <span style="margin-left: 10px;"># Models: {model_num} | Updated: {LAST_UPDATED}</span>
 
 
 
40
  </div>
41
- """
 
42
 
43
  #TODO About
44
  LLM_BENCHMARKS_TEXT = f"""
 
29
 
30
  # introduction text
31
 
32
+ def get_INTRODUCTION_TEXT(model_num: int, LAST_UPDATED: str, paper_link="TODO"):
33
+ LAST_UPDATED = LAST_UPDATED.split(" ")[0] # 只保留到“年-月-日”
34
  return f"""
35
  <div style="display: flex; flex-wrap: wrap; gap: 10px; align-items: center;">
36
  <!-- Paper icon with custom link -->
37
  <a href="{paper_link}" target="_blank">
38
  📑 Paper
39
  </a>
40
+ <span style="margin: 0 10px;">|</span>
41
+ <span style="font-weight: bold;">MODELS:</span> {model_num}
42
+ <span style="margin: 0 10px;">|</span>
43
+ <span style="font-weight: bold;">UPDATED:</span> {LAST_UPDATED}
44
  </div>
45
+ """
46
+
47
 
48
  #TODO About
49
  LLM_BENCHMARKS_TEXT = f"""