Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions fastchat/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
# </div>"""
# SURVEY_LINK = ""

COLOR = "#008B8B"
SURVEY_LINK = f"""<div style='text-align: left; margin: 20px 0;'>
<div style='display: inline-block; border: 2px solid {COLOR}; padding: 20px; padding-bottom: 10px; padding-top: 10px; border-radius: 5px; background-color: #ECFAE5'>
<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>
COLOR = "#F11414"
SURVEY_LINK = f"""<div style='text-align: center; margin: 20px 0;'>
<div style='display: block; width: 100%; border: 2px solid {COLOR}; padding: 20px; padding-bottom: 10px; padding-top: 10px; border-radius: 5px; background-color: #FE9393'>
<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>
</div>
</div>"""

Expand Down
8 changes: 4 additions & 4 deletions fastchat/serve/monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def build_arena_tab(

arena_dfs = {}
category_elo_results = {}
last_updated_time = elo_results["full"]["last_updated_datetime"].split(" ")[0]
last_updated_time = str(elo_results["full"]["last_updated_datetime"]).split(" ")[0]

for k in key_to_category_name.keys():
if k not in elo_results:
Expand Down Expand Up @@ -964,9 +964,9 @@ def build_leaderboard_tab(
</div>
""",
)
last_updated_time = elo_results_text["full"][
"last_updated_datetime"
].split(" ")[0]
last_updated_time = str(
elo_results_text["full"]["last_updated_datetime"]
).split(" ")[0]
gr.Markdown(
make_arena_leaderboard_md(
elo_results_text["full"]["leaderboard_table_df"],
Expand Down