BestWishYsh commited on
Commit
198a617
·
verified ·
1 Parent(s): 2e43837

Update constants.py

Browse files
Files changed (1) hide show
  1. constants.py +10 -2
constants.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  MODEL_INFO = ["Model", "Backbone"]
2
 
3
  ALL_RESULTS = ["UMT-FVD↓", "UMTScore↑", "MTScore↑", "CHScore↑", "GPT4o-MTScore↑"]
@@ -12,9 +15,14 @@ CSV_DIR_CHRONOMAGIC_BENCH_150 = "./file/results_ChronoMagic-Bench-150.csv"
12
 
13
  COLUMN_NAMES = MODEL_INFO + ALL_RESULTS
14
 
15
- LEADERBORAD_INTRODUCTION = """
 
 
 
 
 
16
  <div style='display: flex; align-items: center; justify-content: center; text-align: center;'>
17
- <img src='https://www.pnglog.com/MqiNJ0.jpg' style='width: 600px; height: auto; margin-right: 10px;' />
18
  </div>
19
 
20
  # ChronoMagic-Bench Leaderboard
 
1
+ import base64
2
+ import requests
3
+
4
  MODEL_INFO = ["Model", "Backbone"]
5
 
6
  ALL_RESULTS = ["UMT-FVD↓", "UMTScore↑", "MTScore↑", "CHScore↑", "GPT4o-MTScore↑"]
 
15
 
16
  COLUMN_NAMES = MODEL_INFO + ALL_RESULTS
17
 
18
+ url = "https://www.pnglog.com/6xm07l.png"
19
+ response = requests.get(url)
20
+ base64_str = base64.b64encode(response.content).decode('utf-8')
21
+ img_data_uri = f"data:image/png;base64,{base64_str}"
22
+
23
+ LEADERBORAD_INTRODUCTION = f"""
24
  <div style='display: flex; align-items: center; justify-content: center; text-align: center;'>
25
+ <img src={img_data_uri} style='width: 600px; height: auto; margin-right: 10px;' />
26
  </div>
27
 
28
  # ChronoMagic-Bench Leaderboard