Skip to content

Commit 587d5cf

Browse files
authored
Update constants.py (#3733)
1 parent 9a295b6 commit 587d5cf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

fastchat/constants.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# </div>"""
1616
# SURVEY_LINK = ""
1717

18-
COLOR = "#008B8B"
19-
SURVEY_LINK = f"""<div style='text-align: left; margin: 20px 0;'>
20-
<div style='display: inline-block; border: 2px solid {COLOR}; padding: 20px; padding-bottom: 10px; padding-top: 10px; border-radius: 5px; background-color: #ECFAE5'>
21-
<span style='color: {COLOR}; font-weight: bold;'>New Arena UI at <a href='https://beta.lmarena.ai/'>BETA.lmarena.ai</a>! Check it out & give feedback!</a></span>
18+
COLOR = "#F11414"
19+
SURVEY_LINK = f"""<div style='text-align: center; margin: 20px 0;'>
20+
<div style='display: block; width: 100%; border: 2px solid {COLOR}; padding: 20px; padding-bottom: 10px; padding-top: 10px; border-radius: 5px; background-color: #FE9393'>
21+
<span style='font-weight: bold; font-size: 20px; color: #050505; '>🔔 New Arena UI at <a href='https://lmarena.ai/leaderboard?utm_campaign=hf_banner' target="_blank" rel="noopener noreferrer" style="color: #233F9C; text-decoration: underline;">lmarena.ai/leaderboard</a>! Check it out and give feedback!</a></span>
2222
</div>
2323
</div>"""
2424

fastchat/serve/monitor/monitor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def build_arena_tab(
438438

439439
arena_dfs = {}
440440
category_elo_results = {}
441-
last_updated_time = elo_results["full"]["last_updated_datetime"].split(" ")[0]
441+
last_updated_time = str(elo_results["full"]["last_updated_datetime"]).split(" ")[0]
442442

443443
for k in key_to_category_name.keys():
444444
if k not in elo_results:
@@ -964,9 +964,9 @@ def build_leaderboard_tab(
964964
</div>
965965
""",
966966
)
967-
last_updated_time = elo_results_text["full"][
968-
"last_updated_datetime"
969-
].split(" ")[0]
967+
last_updated_time = str(
968+
elo_results_text["full"]["last_updated_datetime"]
969+
).split(" ")[0]
970970
gr.Markdown(
971971
make_arena_leaderboard_md(
972972
elo_results_text["full"]["leaderboard_table_df"],

0 commit comments

Comments
 (0)