Maharshi Gor commited on
Commit
bdbc03c
Β·
1 Parent(s): 4b84911

Removed leaderboard and added link

Browse files
Files changed (3) hide show
  1. app.py +11 -9
  2. src/envs.py +1 -0
  3. src/submission/structs.py +2 -1
app.py CHANGED
@@ -29,6 +29,7 @@ from envs import (
29
  EVAL_RESULTS_PATH,
30
  GITHUB_ISSUES_URL,
31
  LEADERBOARD_REFRESH_INTERVAL,
 
32
  PLAYGROUND_DATASET_NAMES,
33
  QUEUE_REPO,
34
  REGISTRATION_URL,
@@ -111,10 +112,12 @@ if __name__ == "__main__":
111
  with gr.Row():
112
  with gr.Column(scale=5):
113
  gr.Markdown(
114
- "## πŸ€– Welcome to QANTA 2025 Quizbowl Arena! \n### 🎲 Create, play around, and submit your quizbowl agents."
115
- f"<br>πŸ“‹ Register [here]({REGISTRATION_URL}) to participate in our [QANTA 2025 Human-AI Quizbowl Competition]({COMPETITION_URL}).",
 
116
  elem_classes="welcome-text",
117
  )
 
118
  login_btn = gr.LoginButton(scale=1)
119
 
120
  accent_color = "#B00000"
@@ -122,8 +125,8 @@ if __name__ == "__main__":
122
  f"πŸ‘€ <span style='color:{accent_color};font-weight:bold;'>First time here?</span> Check out the [❓ Help](#help) tab for a quick introduction and "
123
  f"[QANTA25 Documentation]({DOCS_REPO_URL}) "
124
  "for detailed examples and tutorials on how to create and compete with your own QuizBowl agents. "
125
- f"<br>🀨 <span style='color:{accent_color};font-weight:bold;'>Facing any issues?</span> Please contact us at [{CONTACT_EMAIL}](mailto:{CONTACT_EMAIL}), or raise an issue on our [GitHub repository]({GITHUB_ISSUES_URL}).",
126
- f"<br>🀨 <span style='color:{accent_color};font-weight:bold;'>Engagements?</span> Join our [Discord server]({DISCORD_URL}) to discuss the competition, share your agents, and get help from other participants.",
127
  elem_classes="help-text",
128
  )
129
  with gr.Tabs() as gtab:
@@ -137,11 +140,10 @@ if __name__ == "__main__":
137
  **DEFAULT_SELECTIONS["bonus"], init_workflow=factory.create_simple_qb_bonus_workflow()
138
  )
139
  bonus_interface = BonusInterface(demo, browser_state, bonus_ds, AVAILABLE_MODELS, defaults)
140
- with gr.Tab("πŸ… Leaderboard", elem_id="llm-benchmark-tab-table", id="leaderboard"):
141
- leaderboard_timer = gr.Timer(LEADERBOARD_REFRESH_INTERVAL)
142
- gr.Markdown("<a id='leaderboard' href='#leaderboard'>QANTA Leaderboard</a>")
143
- gr.Markdown(LEADERBOARD_INTRODUCTION_TEXT)
144
- create_leaderboard_interface(demo)
145
  with gr.Tab("❓ Help", id="help"):
146
  with gr.Row():
147
  with gr.Column():
 
29
  EVAL_RESULTS_PATH,
30
  GITHUB_ISSUES_URL,
31
  LEADERBOARD_REFRESH_INTERVAL,
32
+ LEADERBOARD_URL,
33
  PLAYGROUND_DATASET_NAMES,
34
  QUEUE_REPO,
35
  REGISTRATION_URL,
 
112
  with gr.Row():
113
  with gr.Column(scale=5):
114
  gr.Markdown(
115
+ f"## πŸ€– Welcome to QANTA 2025 Quizbowl Arena! &emsp;&emsp;&emsp; β‡’ πŸ† [Leaderboard]({LEADERBOARD_URL}) ⇐"
116
+ "\n### 🎲 Create, play around, and submit your quizbowl agents."
117
+ f"<br>πŸ“‹ [Register]({REGISTRATION_URL}) to participate in our [QANTA 2025 Human-AI Quizbowl Competition]({COMPETITION_URL}).",
118
  elem_classes="welcome-text",
119
  )
120
+ # leaderboard_btn = gr.Button("πŸ† Leaderboard", elem_id="leaderboard-btn", link=LEADERBOARD_URL)
121
  login_btn = gr.LoginButton(scale=1)
122
 
123
  accent_color = "#B00000"
 
125
  f"πŸ‘€ <span style='color:{accent_color};font-weight:bold;'>First time here?</span> Check out the [❓ Help](#help) tab for a quick introduction and "
126
  f"[QANTA25 Documentation]({DOCS_REPO_URL}) "
127
  "for detailed examples and tutorials on how to create and compete with your own QuizBowl agents. "
128
+ f"<br>🀨 <span style='color:{accent_color};font-weight:bold;'>Facing any issues?</span> Please contact us at [{CONTACT_EMAIL}](mailto:{CONTACT_EMAIL}), or raise an issue on our [GitHub repository]({GITHUB_ISSUES_URL})."
129
+ f" &nbsp; πŸ§‘πŸ»β€πŸ’» <span style='color:{accent_color};font-weight:bold;'>Engagements?</span> Join our [Discord server]({DISCORD_URL}) for discussions and getting help.",
130
  elem_classes="help-text",
131
  )
132
  with gr.Tabs() as gtab:
 
140
  **DEFAULT_SELECTIONS["bonus"], init_workflow=factory.create_simple_qb_bonus_workflow()
141
  )
142
  bonus_interface = BonusInterface(demo, browser_state, bonus_ds, AVAILABLE_MODELS, defaults)
143
+ # with gr.Tab("πŸ… Leaderboard", elem_id="llm-benchmark-tab-table", id="leaderboard"):
144
+ # gr.Markdown("<a id='leaderboard' href='#leaderboard'>QANTA Leaderboard</a>")
145
+ # gr.Markdown(LEADERBOARD_INTRODUCTION_TEXT)
146
+ # create_leaderboard_interface(demo)
 
147
  with gr.Tab("❓ Help", id="help"):
148
  with gr.Row():
149
  with gr.Column():
src/envs.py CHANGED
@@ -29,6 +29,7 @@ GITHUB_ISSUES_URL = DOCS_REPO_URL + "/issues"
29
  CONTACT_EMAIL = "[email protected]"
30
  DISCORD_URL = "https://discord.gg/ChmDVatJ6Y"
31
  REGISTRATION_URL = "https://huggingface.co/spaces/qanta-challenge/register"
 
32
  EXAMPLES_PATH = "examples"
33
 
34
  PLAYGROUND_DATASET_NAMES = {
 
29
  CONTACT_EMAIL = "[email protected]"
30
  DISCORD_URL = "https://discord.gg/ChmDVatJ6Y"
31
  REGISTRATION_URL = "https://huggingface.co/spaces/qanta-challenge/register"
32
+ LEADERBOARD_URL = "https://huggingface.co/spaces/qanta-challenge/leaderboard"
33
  EXAMPLES_PATH = "examples"
34
 
35
  PLAYGROUND_DATASET_NAMES = {
src/submission/structs.py CHANGED
@@ -43,8 +43,8 @@ class Submission(BaseModel):
43
  """
44
 
45
  id: str = Field(description="Unique identifier for the submission")
46
- model_name: str = Field(description="Display name of the submission")
47
  username: str = Field(description="HuggingFace username of the user who created the submission")
 
48
  description: str = Field(description="Detailed description of what the submission does")
49
  competition_type: CompetitionType = Field(description="Type of competition (tossup or bonus)")
50
  submission_type: SubmissionType = Field(description="Format of the submission (python file or workflow)")
@@ -54,6 +54,7 @@ class Submission(BaseModel):
54
  status: SubmissionStatus = Field(description="Current status of the submission")
55
  created_at: str = Field(description="ISO format timestamp of creation")
56
  updated_at: str = Field(description="ISO format timestamp of last update")
 
57
 
58
  def to_dict(self) -> Dict:
59
  """Convert to dictionary format suitable for HF datasets"""
 
43
  """
44
 
45
  id: str = Field(description="Unique identifier for the submission")
 
46
  username: str = Field(description="HuggingFace username of the user who created the submission")
47
+ model_name: str = Field(description="Display name of the submission")
48
  description: str = Field(description="Detailed description of what the submission does")
49
  competition_type: CompetitionType = Field(description="Type of competition (tossup or bonus)")
50
  submission_type: SubmissionType = Field(description="Format of the submission (python file or workflow)")
 
54
  status: SubmissionStatus = Field(description="Current status of the submission")
55
  created_at: str = Field(description="ISO format timestamp of creation")
56
  updated_at: str = Field(description="ISO format timestamp of last update")
57
+ version: int = Field(description="Version number of the submission", default=1) # For backwards compatibility
58
 
59
  def to_dict(self) -> Dict:
60
  """Convert to dictionary format suitable for HF datasets"""