Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/display/utils.py
Browse files- src/display/utils.py +7 -0
src/display/utils.py
CHANGED
@@ -105,6 +105,13 @@ class NumFewShotsType(Enum):
|
|
105 |
shot0 = ModelDetails("0-shots")
|
106 |
shot4 = ModelDetails("4-shots")
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
# Column selection
|
109 |
COLS = [c.name for c in fields(AutoEvalColumn) if not c.hidden]
|
110 |
|
|
|
105 |
shot0 = ModelDetails("0-shots")
|
106 |
shot4 = ModelDetails("4-shots")
|
107 |
|
108 |
+
def from_str(num_few_shots):
|
109 |
+
if num_few_shots=="0":
|
110 |
+
return NumFewShotsType.shot0
|
111 |
+
if num_few_shots=="4":
|
112 |
+
return NumFewShotsType.shot4
|
113 |
+
assert True
|
114 |
+
|
115 |
# Column selection
|
116 |
COLS = [c.name for c in fields(AutoEvalColumn) if not c.hidden]
|
117 |
|