Upload folder using huggingface_hub
Browse files- __pycache__/request_api.cpython-38.pyc +0 -0
- gradio_app.py +6 -6
__pycache__/request_api.cpython-38.pyc
CHANGED
Binary files a/__pycache__/request_api.cpython-38.pyc and b/__pycache__/request_api.cpython-38.pyc differ
|
|
gradio_app.py
CHANGED
@@ -25,8 +25,8 @@ INTRODUCTION_TEXT = "π The ISM2023w Leaderboard ranks and evaluates models \
|
|
25 |
on the Hugging Face Spaces. \
|
26 |
\nWe report the Precision, Recall, Accuracy, Weighted [F1 Score](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html)\n"
|
27 |
|
28 |
-
|
29 |
-
CSV_TEXT = "<p>Please use this link to upload your csvs and check leaderboards!</p> <a href=\"https://a37fcb50ccc3b4a060.gradio.live\" >https://a37fcb50ccc3b4a060.gradio.live</a>"
|
30 |
|
31 |
|
32 |
|
@@ -163,8 +163,8 @@ def format_leaderboard(df,sort_by="F1 Score"):
|
|
163 |
|
164 |
|
165 |
|
166 |
-
|
167 |
-
|
168 |
|
169 |
|
170 |
COLS = [c.name for c in fields(AutoEvalColumn)]
|
@@ -219,7 +219,7 @@ with gr.Blocks() as demo:
|
|
219 |
gr.HTML(CSV_TEXT, elem_classes="markdown-text")
|
220 |
|
221 |
|
222 |
-
|
223 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
224 |
with gr.TabItem("π
Leaderboard Phase 1", elem_id="od-benchmark-tab-table-1", id=0):
|
225 |
|
@@ -266,7 +266,7 @@ with gr.Blocks() as demo:
|
|
266 |
],
|
267 |
outputs=gr.outputs.HTML()
|
268 |
)
|
269 |
-
|
270 |
|
271 |
|
272 |
|
|
|
25 |
on the Hugging Face Spaces. \
|
26 |
\nWe report the Precision, Recall, Accuracy, Weighted [F1 Score](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html)\n"
|
27 |
|
28 |
+
CSV_TEXT = "<p>Please make sure that you upload the CSV in the correct format. Click the link to download a sample CSV!</p> <a href=\"https://huggingface.co/spaces/debayan/ism_2023w/raw/main/example.csv\" download=\"example.csv\">Download CSV</a>"
|
29 |
+
#CSV_TEXT = "<p>Please use this link to upload your csvs and check leaderboards!</p> <a href=\"https://a37fcb50ccc3b4a060.gradio.live\" >https://a37fcb50ccc3b4a060.gradio.live</a>"
|
30 |
|
31 |
|
32 |
|
|
|
163 |
|
164 |
|
165 |
|
166 |
+
leaderboard_df_1 = format_leaderboard(fetch_leaderboard(phase=1))
|
167 |
+
leaderboard_df_2 = format_leaderboard(fetch_leaderboard(phase=2))
|
168 |
|
169 |
|
170 |
COLS = [c.name for c in fields(AutoEvalColumn)]
|
|
|
219 |
gr.HTML(CSV_TEXT, elem_classes="markdown-text")
|
220 |
|
221 |
|
222 |
+
|
223 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
224 |
with gr.TabItem("π
Leaderboard Phase 1", elem_id="od-benchmark-tab-table-1", id=0):
|
225 |
|
|
|
266 |
],
|
267 |
outputs=gr.outputs.HTML()
|
268 |
)
|
269 |
+
|
270 |
|
271 |
|
272 |
|