galb-dai commited on
Commit
bedf605
·
2 Parent(s): 06f2a09 dfdd006

Merge branch 'main' of hf.co:spaces/double-ai/FormulaOne-Leaderboard

Browse files
Files changed (2) hide show
  1. app.py +6 -5
  2. src/about.py +17 -0
app.py CHANGED
@@ -8,7 +8,7 @@ from gradio_leaderboard import Leaderboard, SelectColumns
8
  from huggingface_hub import whoami
9
 
10
  # HTML is split so we can inject Gradio media (images/video) where needed.
11
- from src.about import WHAT_IS_F1_HTML_AFTER_TIER1FIG_TAIL # tail after Tier1 fig
12
  from src.about import WHAT_IS_F1_HTML_AFTER_VIDEO # text immediately after the video
13
  from src.about import WHAT_IS_F1_HTML_AFTER_WARMUPFIG # text between warmup/tier1 figs
14
  from src.about import WHAT_IS_F1_HTML_BOTTOM_A_AFTER_TABS # text after the heading, before the first figure
@@ -523,7 +523,7 @@ with blocks:
523
  gr.Markdown("Please sign in with Hugging Face to submit")
524
  gr.LoginButton(elem_id="hf-login-btn")
525
 
526
- submit_panel = gr.Group(visible=False)
527
  with submit_panel:
528
  with gr.Row():
529
  with gr.Column():
@@ -531,9 +531,10 @@ with blocks:
531
  org_textbox = gr.Textbox(label=AutoEvalColumn.organization.name)
532
  submission_file = gr.File(label="JSONL solutions file", file_types=[".jsonl"])
533
 
534
- logger.info("Submit button")
535
- submit_button = gr.Button("Submit", variant="primary")
536
- submission_result = gr.Markdown()
 
537
 
538
  submit_button.click(
539
  add_solution_cbk,
 
8
  from huggingface_hub import whoami
9
 
10
  # HTML is split so we can inject Gradio media (images/video) where needed.
11
+ from src.about import WHAT_IS_F1_HTML_AFTER_TIER1FIG_TAIL, SUBMISSION_TERMS_TEXT # tail after Tier1 fig
12
  from src.about import WHAT_IS_F1_HTML_AFTER_VIDEO # text immediately after the video
13
  from src.about import WHAT_IS_F1_HTML_AFTER_WARMUPFIG # text between warmup/tier1 figs
14
  from src.about import WHAT_IS_F1_HTML_BOTTOM_A_AFTER_TABS # text after the heading, before the first figure
 
523
  gr.Markdown("Please sign in with Hugging Face to submit")
524
  gr.LoginButton(elem_id="hf-login-btn")
525
 
526
+ submit_panel = gr.Group(visible=False, elem_classes="markdown-text")
527
  with submit_panel:
528
  with gr.Row():
529
  with gr.Column():
 
531
  org_textbox = gr.Textbox(label=AutoEvalColumn.organization.name)
532
  submission_file = gr.File(label="JSONL solutions file", file_types=[".jsonl"])
533
 
534
+ logger.info("Submit button")
535
+ gr.Markdown(SUBMISSION_TERMS_TEXT, elem_classes="markdown-text")
536
+ submit_button = gr.Button("Submit", variant="primary")
537
+ submission_result = gr.Markdown()
538
 
539
  submit_button.click(
540
  add_solution_cbk,
src/about.py CHANGED
@@ -106,6 +106,23 @@ WHAT_IS_F1_HTML_AFTER_TIER1FIG_TAIL = """
106
  </div>
107
  """
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  EVALUATION_QUEUE_TEXT = """
110
  ## Submitting to the FormulaOne Leaderboard
111
 
 
106
  </div>
107
  """
108
 
109
+
110
+ SUBMISSION_TERMS_TEXT = """
111
+ **Competition terms**
112
+ - By submitting, you agree to the **FormulaOne Submission Agreement
113
+ (v1.2)** and our **Privacy Notice**.
114
+ - Your uploaded file remains yours; we only use it to evaluate, score,
115
+ and contact you about your result.
116
+ **Licensing for the public benchmark assets (informational)**
117
+ - **Evaluator code:** Apache License 2.0
118
+ - **Problem statements &amp; public tests:** Creative Commons **CC BY 4.0**
119
+ See the project&#39;s **README licence section** and full texts: `LICENSE-
120
+ APACHE2`, `LICENSE-CC-BY` in our GitHub repo.
121
+ **Platform**
122
+ - Your use of Hugging Face is also governed by Hugging Face&#39;s Terms and
123
+ Privacy Policy.
124
+ """
125
+
126
  EVALUATION_QUEUE_TEXT = """
127
  ## Submitting to the FormulaOne Leaderboard
128