AMR-KELEG commited on
Commit
f4a8c66
·
1 Parent(s): be2dd1d

Some stylistic improvements

Browse files
Files changed (1) hide show
  1. app.py +55 -2
app.py CHANGED
@@ -15,8 +15,11 @@ import pandas as pd
15
  from sklearn.metrics import accuracy_score, f1_score, recall_score, precision_score
16
 
17
 
18
- tab1, tab2 = st.tabs(["Leaderboard", "Submit a Model"])
 
 
19
 
 
20
  with tab1:
21
  # Load the labels
22
  dataset_name = os.environ["DATASET_NAME"]
@@ -115,7 +118,12 @@ with tab2:
115
  "Description": inference_functions_docstring,
116
  }
117
  )
118
- st.data_editor(inference_functions_df, hide_index=True)
 
 
 
 
 
119
 
120
  if model_name:
121
  tokenizer = AutoTokenizer.from_pretrained(model_name)
@@ -152,3 +160,48 @@ with tab2:
152
  )
153
 
154
  st.toast(f"Inference completed!")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  from sklearn.metrics import accuracy_score, f1_score, recall_score, precision_score
16
 
17
 
18
+ st.title("NADI 2024 Leaderboard")
19
+ MARKDOWN_TEXT = """TODO"""
20
+ st.markdown(MARKDOWN_TEXT)
21
 
22
+ tab1, tab2 = st.tabs(["Leaderboard", "Submit a Model"])
23
  with tab1:
24
  # Load the labels
25
  dataset_name = os.environ["DATASET_NAME"]
 
118
  "Description": inference_functions_docstring,
119
  }
120
  )
121
+ with st.expander("Check the inference methods' short descriptions"):
122
+ st.data_editor(inference_functions_df, hide_index=True)
123
+
124
+ st.write(
125
+ "Note: We are happy to discuss adding new custom inference methods for your models."
126
+ )
127
 
128
  if model_name:
129
  tokenizer = AutoTokenizer.from_pretrained(model_name)
 
160
  )
161
 
162
  st.toast(f"Inference completed!")
163
+
164
+ with st.expander("Cite this leaderboard:"):
165
+ st.write(
166
+ """
167
+ Please cite the following paper in which we introduced the NADI 2024 evaluation sets:
168
+ ```
169
+ @inproceedings{abdul-mageed-etal-2024-nadi,
170
+ title = "{NADI} 2024: The Fifth Nuanced {A}rabic Dialect Identification Shared Task",
171
+ author = "Abdul-Mageed, Muhammad and
172
+ Keleg, Amr and
173
+ Elmadany, AbdelRahim and
174
+ Zhang, Chiyu and
175
+ Hamed, Injy and
176
+ Magdy, Walid and
177
+ Bouamor, Houda and
178
+ Habash, Nizar",
179
+ editor = "Habash, Nizar and
180
+ Bouamor, Houda and
181
+ Eskander, Ramy and
182
+ Tomeh, Nadi and
183
+ Abu Farha, Ibrahim and
184
+ Abdelali, Ahmed and
185
+ Touileb, Samia and
186
+ Hamed, Injy and
187
+ Onaizan, Yaser and
188
+ Alhafni, Bashar and
189
+ Antoun, Wissam and
190
+ Khalifa, Salam and
191
+ Haddad, Hatem and
192
+ Zitouni, Imed and
193
+ AlKhamissi, Badr and
194
+ Almatham, Rawan and
195
+ Mrini, Khalil",
196
+ booktitle = "Proceedings of The Second Arabic Natural Language Processing Conference",
197
+ month = aug,
198
+ year = "2024",
199
+ address = "Bangkok, Thailand",
200
+ publisher = "Association for Computational Linguistics",
201
+ url = "https://aclanthology.org/2024.arabicnlp-1.79",
202
+ doi = "10.18653/v1/2024.arabicnlp-1.79",
203
+ pages = "709--728",
204
+ }
205
+ ```
206
+ """
207
+ )