Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -206,26 +206,17 @@ with gr.Blocks() as demo:
|
|
| 206 |
with gr.Row():
|
| 207 |
with gr.Column():
|
| 208 |
with gr.Accordion("Submit log files from a Docker run:", open=False):
|
| 209 |
-
gr.Markdown("
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
|
|
|
|
|
|
| 214 |
file_output = gr.File(visible=False)
|
| 215 |
-
u = gr.UploadButton("Upload a zip file with logs", file_count="single", interactive=
|
| 216 |
u.upload(add_docker_eval, u, file_output)
|
| 217 |
|
| 218 |
-
def update_upload_button_interactive(checkbox_value):
|
| 219 |
-
# When checkbox_value is True, disable should be False (i.e. the button becomes active)
|
| 220 |
-
return gr.UploadButton.update(disabled=not checkbox_value)
|
| 221 |
-
|
| 222 |
-
agreement_checkbox.change(
|
| 223 |
-
fn=update_upload_button_interactive,
|
| 224 |
-
inputs=[agreement_checkbox],
|
| 225 |
-
outputs=[u]
|
| 226 |
-
)
|
| 227 |
-
|
| 228 |
-
|
| 229 |
with gr.Row():
|
| 230 |
with gr.Column():
|
| 231 |
with gr.Accordion("Models that are in the latest leaderboard version:", open=False, visible=False):
|
|
|
|
| 206 |
with gr.Row():
|
| 207 |
with gr.Column():
|
| 208 |
with gr.Accordion("Submit log files from a Docker run:", open=False):
|
| 209 |
+
gr.Markdown("""
|
| 210 |
+
**⚠️ Warning: By uploading the zip file, you confirm that you have read and agree to the following terms:**
|
| 211 |
+
|
| 212 |
+
- **Public Data Sharing:** You consent to the public sharing of the energy performance data derived from your submission. No additional information related to this model, including proprietary configurations, will be disclosed.
|
| 213 |
+
- **Data Integrity:** You certify that the log files submitted are accurate, unaltered, and generated directly from testing your model as per the specified benchmarking procedures.
|
| 214 |
+
- **Model Representation:** You affirm that the model tested and submitted is representative of the production-level version, including its level of quantization and any other relevant characteristics impacting energy efficiency and performance.
|
| 215 |
+
""")
|
| 216 |
file_output = gr.File(visible=False)
|
| 217 |
+
u = gr.UploadButton("Upload a zip file with logs", file_count="single", interactive=True)
|
| 218 |
u.upload(add_docker_eval, u, file_output)
|
| 219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
with gr.Row():
|
| 221 |
with gr.Column():
|
| 222 |
with gr.Accordion("Models that are in the latest leaderboard version:", open=False, visible=False):
|