sasha HF Staff commited on
Commit
d5be600
·
verified ·
1 Parent(s): 0e41355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def get_model_size(model_info: ModelInfo):
44
 
45
  def add_docker_eval(zip_file):
46
  API.upload_file(
47
- path_or_fileobj= 'submitted_models/'+zip_file,
48
  repo_id="EnergyStarAI/tested_proprietary_models",
49
  path_in_repo=zip_file,
50
  repo_type="dataset",
@@ -154,7 +154,7 @@ with gr.Blocks() as demo:
154
  with gr.Column():
155
  with gr.Accordion("Submit log files from a Docker run:", open = False):
156
  gr.Markdown("If you've already benchmarked your model using the [Docker file](https://github.com/huggingface/EnergyStarAI/) provided, please upload the **entire run log directory** (in .zip format) below:")
157
- file_output = gr.File()
158
  u = gr.UploadButton("Upload a zip file with logs", file_count="single")
159
  u.upload(add_docker_eval,u, file_output)
160
  with gr.Row():
 
44
 
45
  def add_docker_eval(zip_file):
46
  API.upload_file(
47
+ path_or_fileobj= 'submitted_models/',
48
  repo_id="EnergyStarAI/tested_proprietary_models",
49
  path_in_repo=zip_file,
50
  repo_type="dataset",
 
154
  with gr.Column():
155
  with gr.Accordion("Submit log files from a Docker run:", open = False):
156
  gr.Markdown("If you've already benchmarked your model using the [Docker file](https://github.com/huggingface/EnergyStarAI/) provided, please upload the **entire run log directory** (in .zip format) below:")
157
+ file_output = gr.File(visible=False)
158
  u = gr.UploadButton("Upload a zip file with logs", file_count="single")
159
  u.upload(add_docker_eval,u, file_output)
160
  with gr.Row():