Spaces:
Running
Running
Update app.py
Browse filesdont need the button, really
app.py
CHANGED
@@ -52,9 +52,6 @@ def add_docker_eval(zip_file):
|
|
52 |
commit_message="Adding logs via submission Space.",
|
53 |
token= TOKEN
|
54 |
)
|
55 |
-
return 'Uploaded logs to dataset!'
|
56 |
-
except Exception:
|
57 |
-
return "Couldn't upload this file to the dataset. Try another one?"
|
58 |
|
59 |
|
60 |
def add_new_eval(
|
@@ -155,11 +152,10 @@ with gr.Blocks() as demo:
|
|
155 |
)
|
156 |
with gr.Row():
|
157 |
with gr.Column():
|
158 |
-
with gr.Accordion("Submit log files:", open = False):
|
159 |
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:")
|
160 |
-
|
161 |
-
|
162 |
-
u.upload(add_docker_eval,u, file_output)
|
163 |
with gr.Row():
|
164 |
with gr.Column():
|
165 |
with gr.Accordion("Models that are in the latest leaderboard version:", open = False):
|
|
|
52 |
commit_message="Adding logs via submission Space.",
|
53 |
token= TOKEN
|
54 |
)
|
|
|
|
|
|
|
55 |
|
56 |
|
57 |
def add_new_eval(
|
|
|
152 |
)
|
153 |
with gr.Row():
|
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 |
+
log_files = gr.File()
|
158 |
+
log_files.upload(add_docker_eval,log_files, file_output)
|
|
|
159 |
with gr.Row():
|
160 |
with gr.Column():
|
161 |
with gr.Accordion("Models that are in the latest leaderboard version:", open = False):
|