Upload card.py with huggingface_hub
Browse files
card.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from typing import List
|
2 |
|
3 |
from .artifact import Artifact
|
4 |
from .collections import Collection
|
@@ -16,13 +16,3 @@ class TaskCard(Artifact):
|
|
16 |
templates: Collection = None
|
17 |
instructions: Collection = None
|
18 |
sampler: Sampler = OptionalField(default_factory=RandomSampler)
|
19 |
-
|
20 |
-
|
21 |
-
class ICLCard(Artifact):
|
22 |
-
demos_pool_name: str = "demos_pool"
|
23 |
-
demos_pool_size: int = None
|
24 |
-
demos_field: str = "demos"
|
25 |
-
num_demos: int = None
|
26 |
-
sampler_type: str = "random"
|
27 |
-
instruction_item: Union[str, int] = None
|
28 |
-
template_card_index: Union[str, int] = None
|
|
|
1 |
+
from typing import List
|
2 |
|
3 |
from .artifact import Artifact
|
4 |
from .collections import Collection
|
|
|
16 |
templates: Collection = None
|
17 |
instructions: Collection = None
|
18 |
sampler: Sampler = OptionalField(default_factory=RandomSampler)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|