Spaces:
Running
Running
Merge branch 'main' of hf.co:spaces/yan111222/CapArena_Auto_1
Browse files- src/about.py +20 -9
src/about.py
CHANGED
@@ -25,25 +25,36 @@ NUM_FEWSHOT = 0 # Change with your few shot
|
|
25 |
|
26 |
|
27 |
#TODO title
|
28 |
-
TITLE = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
|
36 |
<!-- Paper icon with custom link -->
|
37 |
-
<a href="{paper_link}" target="_blank">
|
38 |
-
|
|
|
39 |
</a>
|
40 |
-
<span style="margin: 0
|
41 |
-
<span style="font-weight: bold;">MODELS:</span> {model_num}
|
42 |
-
<span style="margin: 0
|
43 |
-
<span style="font-weight: bold;">UPDATED:</span> {LAST_UPDATED}
|
44 |
</div>
|
45 |
"""
|
46 |
|
|
|
47 |
#TODO
|
48 |
INTRODUCE_BENCHMARK = f"""
|
49 |
<h2 style="color: #2c3e50;"> Introduction #TODO</h2>
|
|
|
25 |
|
26 |
|
27 |
#TODO title
|
28 |
+
TITLE = """
|
29 |
+
<h1 align="center" id="space-title" style="font-family: 'Arial', sans-serif; color: #4CAF50;">
|
30 |
+
<span style="font-size: 40px; margin-right: 15px;">π</span>
|
31 |
+
VLM Detailed Caption Leaderboard
|
32 |
+
<span style="font-size: 40px; margin-left: 15px;">π</span>
|
33 |
+
</h1>
|
34 |
+
<p style="text-align: center; font-size: 18px; color: #888;">
|
35 |
+
A detailed and interactive leaderboard for Vision-Language Models
|
36 |
+
</p>
|
37 |
+
"""
|
38 |
|
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] # Only keep "year-month-day"
|
43 |
return f"""
|
44 |
+
<div style="display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: center; font-family: 'Arial', sans-serif;">
|
45 |
<!-- Paper icon with custom link -->
|
46 |
+
<a href="{paper_link}" target="_blank" style="text-decoration: none; color: #1E90FF; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 5px;">
|
47 |
+
<span style="font-size: 22px;">π</span>
|
48 |
+
<span>Read the Paper</span>
|
49 |
</a>
|
50 |
+
<span style="margin: 0 15px; font-size: 20px; color: #555;">|</span>
|
51 |
+
<span style="font-weight: bold; color: #4CAF50;">MODELS:</span> <span style="color: #333;">{model_num}</span>
|
52 |
+
<span style="margin: 0 15px; font-size: 20px; color: #555;">|</span>
|
53 |
+
<span style="font-weight: bold; color: #4CAF50;">UPDATED:</span> <span style="color: #333;">{LAST_UPDATED}</span>
|
54 |
</div>
|
55 |
"""
|
56 |
|
57 |
+
|
58 |
#TODO
|
59 |
INTRODUCE_BENCHMARK = f"""
|
60 |
<h2 style="color: #2c3e50;"> Introduction #TODO</h2>
|