Spaces:
Runtime error
Runtime error
Add NER
Browse files25 unmodified lines262728293031322 unmodified lines353637383940414216 unmodified lines59606162636425 unmodified lines}# TODO: remove this hardcorded logic and accept any dataset on the HubDATASETS_TO_EVALUATE = ["emotion", "conll2003", "imdb", "squad"]############## APP ###2 unmodified linesst.markdown("""Welcome to Hugging Face's Evaluation as a Service! This application allowsyou to evaluate any 🤗 Transformers model on the Hub. Please select thedataset and configuration below.""")16 unmodified linesselected_split = st.selectbox("Select a split", split_names, index=split_names.index(eval_split))col_mapping = metadata[0]["col_mapping"]col_names = list(col_mapping.keys())25 unmodified lines262728293031322 unmodified lines353637383940414216 unmodified lines5960616263646525 unmodified lines}# TODO: remove this hardcorded logic and accept any dataset on the HubDATASETS_TO_EVALUATE = ["emotion", "conll2003", "imdb", "squad", "xsum", "ncbi_disease"]############## APP ###2 unmodified linesst.markdown("""Welcome to Hugging Face's Evaluation as a Service! This application allowsyou to evaluate any 🤗 Transformers model with a dataset on the Hub. Pleaseselect the dataset and configuration below.""")16 unmodified linesselected_split = st.selectbox("Select a split", split_names, index=split_names.index(eval_split))# TODO: add a function to handle the mapping task <--> column mappingcol_mapping = metadata[0]["col_mapping"]col_names = list(col_mapping.keys())
app.py+4-3