bgamazay commited on
Commit
37689e2
·
verified ·
1 Parent(s): 824d4bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -17
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("If you've already benchmarked your model using the [Docker file](https://github.com/huggingface/AIEnergyScore/) provided, please upload the **entire run log directory** (in .zip format) below:")
210
- agreement_checkbox = gr.Checkbox(label="""By checking the box below and submitting your energy score data, you confirm and agree to the following:
211
- - 1. 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.
212
- - 2. Data Integrity: You validate that the log files submitted are accurate, unaltered, and generated directly from testing your model as per the specified benchmarking procedures.
213
- - 3. Model Representation: You verify that the model tested and submitted is representative of the production-level version of the model, including its level of quantization and any other relevant characteristics impacting energy efficiency and performance.""")
 
 
214
  file_output = gr.File(visible=False)
215
- u = gr.UploadButton("Upload a zip file with logs", file_count="single", interactive=False)
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):