XufengDuan commited on
Commit
6a5a0c3
1 Parent(s): bcb4445

update scripts

Browse files
Files changed (2) hide show
  1. src/display/about.py +10 -10
  2. src/display/utils.py +3 -3
src/display/about.py CHANGED
@@ -13,25 +13,25 @@ class Tasks(Enum):
13
  Overall = Task("overall_js_divergence", "overall_js_divergence", "Overall Humanlike %")
14
  Overall_ci = Task("overall_confidence_interval", "overall_confidence_interval", "Overall CI")
15
  E1 = Task("E1", "E1", "Sound-1")
16
- E1_ci = Task("E1_ci", "E1_ci", "Sound-1 CI")
17
  E2 = Task("E2", "E2", "Sound-2")
18
- E2_ci = Task("E2_ci", "E2_ci", "Sound-2 CI")
19
  E3 = Task("E3", "E3", "Word-1")
20
- E3_ci = Task("E3_ci", "E3_ci", "Word-1 CI")
21
  E4 = Task("E4", "E4", "Word-2")
22
- E4_ci = Task("E4_ci", "E4_ci", "Word-2 CI")
23
  E5 = Task("E5", "E5", "Syntax-1")
24
- E5_ci = Task("E5_ci", "E5_ci", "Syntax-1 CI")
25
  E6 = Task("E6", "E6", "Syntax-2")
26
- E6_ci = Task("E6_ci", "E6_ci", "Syntax-2 CI")
27
  E7 = Task("E7", "E7", "Meaning-1")
28
- E7_ci = Task("E7_ci", "E7_ci", "Meaning-1 CI")
29
  E8 = Task("E8", "E8", "Meaning-2")
30
- E8_ci = Task("E8_ci", "E8_ci", "Meaning-2 CI")
31
  E9 = Task("E9", "E9", "Discourse-1")
32
- E9_ci = Task("E9_ci", "E9_ci", "Discourse-1 CI")
33
  E10 = Task("E10", "E10", "Discourse-2")
34
- E10_ci = Task("E10_ci", "E10_ci", "Discourse-2 CI")
35
 
36
 
37
 
 
13
  Overall = Task("overall_js_divergence", "overall_js_divergence", "Overall Humanlike %")
14
  Overall_ci = Task("overall_confidence_interval", "overall_confidence_interval", "Overall CI")
15
  E1 = Task("E1", "E1", "Sound-1")
16
+ # E1_ci = Task("E1_ci", "E1_ci", "Sound-1 CI")
17
  E2 = Task("E2", "E2", "Sound-2")
18
+ # E2_ci = Task("E2_ci", "E2_ci", "Sound-2 CI")
19
  E3 = Task("E3", "E3", "Word-1")
20
+ # E3_ci = Task("E3_ci", "E3_ci", "Word-1 CI")
21
  E4 = Task("E4", "E4", "Word-2")
22
+ # E4_ci = Task("E4_ci", "E4_ci", "Word-2 CI")
23
  E5 = Task("E5", "E5", "Syntax-1")
24
+ # E5_ci = Task("E5_ci", "E5_ci", "Syntax-1 CI")
25
  E6 = Task("E6", "E6", "Syntax-2")
26
+ # E6_ci = Task("E6_ci", "E6_ci", "Syntax-2 CI")
27
  E7 = Task("E7", "E7", "Meaning-1")
28
+ # E7_ci = Task("E7_ci", "E7_ci", "Meaning-1 CI")
29
  E8 = Task("E8", "E8", "Meaning-2")
30
+ # E8_ci = Task("E8_ci", "E8_ci", "Meaning-2 CI")
31
  E9 = Task("E9", "E9", "Discourse-1")
32
+ # E9_ci = Task("E9_ci", "E9_ci", "Discourse-1 CI")
33
  E10 = Task("E10", "E10", "Discourse-2")
34
+ # E10_ci = Task("E10_ci", "E10_ci", "Discourse-2 CI")
35
 
36
 
37
 
src/display/utils.py CHANGED
@@ -39,11 +39,11 @@ for task in Tasks:
39
  # Model information
40
  auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])
41
  auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
42
- auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
43
  auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
44
  auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
45
- auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
46
- auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])
47
  auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
48
  # auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
49
  # Dummy column for the search bar (hidden by the custom CSS)
 
39
  # Model information
40
  auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])
41
  auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
42
+ auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False)])
43
  auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
44
  auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
45
+ auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", True)])
46
+ auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", True)])
47
  auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
48
  # auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
49
  # Dummy column for the search bar (hidden by the custom CSS)