Sebastian Gehrmann commited on
Commit
396d1e7
1 Parent(s): 88dffd6
Files changed (1) hide show
  1. datacards/results.py +14 -2
datacards/results.py CHANGED
@@ -31,10 +31,11 @@ def results_page():
31
  "ChrF",
32
  "Entailment",
33
  "FeQA",
34
- "METEOR" "MoverScore",
35
  "QAGS",
36
  "ROUGE",
37
  "WER",
 
38
  ],
39
  help="Select all metrics that are typically used when evaluating models for this task.",
40
  )
@@ -73,4 +74,15 @@ def results_page():
73
 
74
 
75
  def results_summary():
76
- return None
 
 
 
 
 
 
 
 
 
 
 
 
31
  "ChrF",
32
  "Entailment",
33
  "FeQA",
34
+ "METEOR", "MoverScore",
35
  "QAGS",
36
  "ROUGE",
37
  "WER",
38
+ "Other: Other Metrics"
39
  ],
40
  help="Select all metrics that are typically used when evaluating models for this task.",
41
  )
 
74
 
75
 
76
  def results_summary():
77
+ total_filled = sum(
78
+ [len(dct) for dct in st.session_state.card_dict.get("results", {}).values()]
79
+ )
80
+ with st.expander(
81
+ f"Previous Results Completion - {total_filled} of {N_FIELDS}", expanded=False
82
+ ):
83
+ completion_markdown = ""
84
+ completion_markdown += (
85
+ f"- **Overall competion:**\n - {total_filled} of {N_FIELDS} fields\n"
86
+ )
87
+ completion_markdown += f"- **Sub-section - Previous Results:**\n - {len(st.session_state.card_dict.get('results', {}).get('results', {}))} of {N_FIELDS} fields\n"
88
+ st.markdown(completion_markdown)