Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,15 @@ import pandas as pd
|
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
import plotly.express as px
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
tasks = ['asr.csv', 'object_detection.csv', 'text_classification.csv', 'image_captioning.csv',
|
| 8 |
'question_answering.csv', 'text_generation.csv', 'image_classification.csv',
|
| 9 |
'sentence_similarity.csv', 'image_generation.csv', 'summarization.csv']
|
|
@@ -193,18 +201,11 @@ with demo:
|
|
| 193 |
""")
|
| 194 |
with gr.Accordion("📙 Citation", open=False):
|
| 195 |
citation_button = gr.Textbox(
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
howpublished = "\url{https://huggingface.co/spaces/EnergyStarAI/2024_Leaderboard}",
|
| 202 |
-
},
|
| 203 |
-
"""
|
| 204 |
-
label=CITATION_BUTTON_LABEL,
|
| 205 |
-
lines=20,
|
| 206 |
-
elem_id="citation-button",
|
| 207 |
-
show_copy_button=True,
|
| 208 |
)
|
| 209 |
gr.Markdown(
|
| 210 |
"""Last updated: September 20th, 2024 by [Sasha Luccioni](https://huggingface.co/sasha)""")
|
|
|
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
import plotly.express as px
|
| 5 |
|
| 6 |
+
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
|
| 7 |
+
CITATION_BUTTON_TEXT = r"""@misc{energystarai-leaderboard,
|
| 8 |
+
author = {Sasha Luccioni and Boris Gamazaychikov and Emma Strubell and Sara Hooker and Yacine Jernite and Carole-Jean Wu and Margaret Mitchell},
|
| 9 |
+
title = {Energy Star AI Leaderboard v.0},
|
| 10 |
+
year = {2024},
|
| 11 |
+
publisher = {Hugging Face},
|
| 12 |
+
howpublished = "\url{https://huggingface.co/spaces/EnergyStarAI/2024_Leaderboard}",
|
| 13 |
+
}
|
| 14 |
+
"""
|
| 15 |
tasks = ['asr.csv', 'object_detection.csv', 'text_classification.csv', 'image_captioning.csv',
|
| 16 |
'question_answering.csv', 'text_generation.csv', 'image_classification.csv',
|
| 17 |
'sentence_similarity.csv', 'image_generation.csv', 'summarization.csv']
|
|
|
|
| 201 |
""")
|
| 202 |
with gr.Accordion("📙 Citation", open=False):
|
| 203 |
citation_button = gr.Textbox(
|
| 204 |
+
value=CITATION_BUTTON_TEXT,
|
| 205 |
+
label=CITATION_BUTTON_LABEL,
|
| 206 |
+
lines=20,
|
| 207 |
+
elem_id="citation-button",
|
| 208 |
+
show_copy_button=True,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
)
|
| 210 |
gr.Markdown(
|
| 211 |
"""Last updated: September 20th, 2024 by [Sasha Luccioni](https://huggingface.co/sasha)""")
|