rohankaran commited on
Commit
b0b900b
1 Parent(s): 05a5906

Update rankings message in leaderboards tab

Browse files

The code now adds a placeholder message about launching the leaderboards once enough votes have been gathered for the guardrails feature. This message replaces the previously empty leaderboard section. The original line to get rankings has been commented out for future use.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -451,8 +451,8 @@ with gr.Blocks(
451
 
452
  with gr.Tab(label="🏆 Leaderboard", elem_id="leaderboard") as leaderboard_tab:
453
  gr.Markdown("## 🏆 Guardrails Leaderboard")
454
- rankings = gr.Markdown("")
455
- leaderboard_tab.select(get_rankings, None, [rankings])
456
 
457
  gr.Markdown(
458
  """
 
451
 
452
  with gr.Tab(label="🏆 Leaderboard", elem_id="leaderboard") as leaderboard_tab:
453
  gr.Markdown("## 🏆 Guardrails Leaderboard")
454
+ rankings = gr.Markdown("We will launch the guardrails leaderboard once enough votes are collected. Ranking will be calculated based on ELO ratings. Keep playing so that we can collect enough data.")
455
+ # leaderboard_tab.select(get_rankings, None, [rankings])
456
 
457
  gr.Markdown(
458
  """