Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update gen table data type
Browse files- gen_table.py +4 -2
gen_table.py
CHANGED
@@ -70,7 +70,8 @@ def BUILD_L1_DF(results, fields):
|
|
70 |
check_box['all'] = check_box['avg'] + fields
|
71 |
type_map = defaultdict(lambda: 'number')
|
72 |
type_map['Method'] = 'html'
|
73 |
-
type_map['Language Model'] = type_map['Vision Model'] =
|
|
|
74 |
check_box['type_map'] = type_map
|
75 |
|
76 |
df = generate_table(results, fields)
|
@@ -132,7 +133,8 @@ def BUILD_L2_DF(results, dataset):
|
|
132 |
check_box['all'] = all_fields
|
133 |
type_map = defaultdict(lambda: 'number')
|
134 |
type_map['Method'] = 'html'
|
135 |
-
type_map['Language Model'] = type_map['Vision Model'] =
|
|
|
136 |
check_box['type_map'] = type_map
|
137 |
return df, check_box
|
138 |
|
|
|
70 |
check_box['all'] = check_box['avg'] + fields
|
71 |
type_map = defaultdict(lambda: 'number')
|
72 |
type_map['Method'] = 'html'
|
73 |
+
type_map['Language Model'] = type_map['Vision Model'] = 'html'
|
74 |
+
type_map['OpenSource'] = type_map['Verified'] = 'str'
|
75 |
check_box['type_map'] = type_map
|
76 |
|
77 |
df = generate_table(results, fields)
|
|
|
133 |
check_box['all'] = all_fields
|
134 |
type_map = defaultdict(lambda: 'number')
|
135 |
type_map['Method'] = 'html'
|
136 |
+
type_map['Language Model'] = type_map['Vision Model'] = 'html'
|
137 |
+
type_map['OpenSource'] = type_map['Verified'] = 'str'
|
138 |
check_box['type_map'] = type_map
|
139 |
return df, check_box
|
140 |
|