Sasha commited on
Commit
af7fcaa
1 Parent(s): 20aa046

adding more emoji

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -16,6 +16,8 @@ st.set_page_config(
16
 
17
  st.title("Hugging Face Evaluation Buddy")
18
 
 
 
19
  top_datasets= ['glue', 'super_glue', 'wikitext', 'imdb', 'squad', 'squad_es', \
20
  'paws', 'librispeech_asr', 'wmt16', 'xnli', 'snli', 'ag_news', \
21
  'anli', 'amazon_polarity', 'squad_v2', 'conll2003', 'red_caps', \
@@ -61,7 +63,6 @@ with st.sidebar.expander("Datasets", expanded=True):
61
 
62
  st.markdown("## Here is some information about your dataset:")
63
 
64
- st.markdown("### Description")
65
 
66
  st.markdown(dataset_builder.info.description)
67
 
@@ -69,10 +70,11 @@ if len(dataset_builder.info.description) == 1:
69
  st.markdown("This dataset does not have a description. :no_mouth:")
70
  st.markdown("For more information about this dataset, check out [its website](https://huggingface.co/datasets/"+dataset_name+")")
71
 
 
72
 
73
  st.markdown("### Dataset-Specific Metrics")
74
  if dataset_name in metrics:
75
- st.markdown("Great news! Your dataset has a dedicated metric for it! You can use it like this: :point_down:")
76
  if "glue" in dataset_name:
77
  code = ''' from datasets import load_metric
78
  metric = load_metric(\"'''+dataset_name+'''\", \"'''+dataset_config+'''\")'''
@@ -102,7 +104,7 @@ if task is not None:
102
  metric = load_metric("cer")'''
103
  st.code(cer_code, language='python')
104
  else:
105
- st.markdown("The task for your dataset doesn't have any dedicated metrics, but you can still use general ones!")
106
 
107
 
108
  #print(dataset_builder.info.task_templates)
 
16
 
17
  st.title("Hugging Face Evaluation Buddy")
18
 
19
+ st.markdown('### Here to help you do mindful model evaluation')
20
+
21
  top_datasets= ['glue', 'super_glue', 'wikitext', 'imdb', 'squad', 'squad_es', \
22
  'paws', 'librispeech_asr', 'wmt16', 'xnli', 'snli', 'ag_news', \
23
  'anli', 'amazon_polarity', 'squad_v2', 'conll2003', 'red_caps', \
 
63
 
64
  st.markdown("## Here is some information about your dataset:")
65
 
 
66
 
67
  st.markdown(dataset_builder.info.description)
68
 
 
70
  st.markdown("This dataset does not have a description. :no_mouth:")
71
  st.markdown("For more information about this dataset, check out [its website](https://huggingface.co/datasets/"+dataset_name+")")
72
 
73
+ st.markdown("## Now let's see what metrics we can use to evaluate models on this dataset!")
74
 
75
  st.markdown("### Dataset-Specific Metrics")
76
  if dataset_name in metrics:
77
+ st.markdown("Great news! Your dataset has a dedicated metric for it!:partying_face: You can use it like this: :point_down:")
78
  if "glue" in dataset_name:
79
  code = ''' from datasets import load_metric
80
  metric = load_metric(\"'''+dataset_name+'''\", \"'''+dataset_config+'''\")'''
 
104
  metric = load_metric("cer")'''
105
  st.code(cer_code, language='python')
106
  else:
107
+ st.markdown("The task for your dataset doesn't have any dedicated metrics, but you can still use general ones! :cowboy_hat_face:")
108
 
109
 
110
  #print(dataset_builder.info.task_templates)