Upload card.py with huggingface_hub
Browse files
card.py
CHANGED
@@ -2,6 +2,7 @@ from dataclasses import dataclass
|
|
2 |
from typing import Dict, List, Optional, Union
|
3 |
|
4 |
from .artifact import Artifact
|
|
|
5 |
from .instructions import InstructionsDict, InstructionsList
|
6 |
from .loaders import Loader
|
7 |
from .normalizers import NormalizeListFields
|
@@ -15,8 +16,8 @@ class TaskCard(Artifact):
|
|
15 |
loader: Loader
|
16 |
task: FormTask
|
17 |
preprocess_steps: Optional[List[Union[StreamingOperator, str]]] = None
|
18 |
-
templates:
|
19 |
-
instructions:
|
20 |
|
21 |
|
22 |
class ICLCard(Artifact):
|
|
|
2 |
from typing import Dict, List, Optional, Union
|
3 |
|
4 |
from .artifact import Artifact
|
5 |
+
from .collections import Collection
|
6 |
from .instructions import InstructionsDict, InstructionsList
|
7 |
from .loaders import Loader
|
8 |
from .normalizers import NormalizeListFields
|
|
|
16 |
loader: Loader
|
17 |
task: FormTask
|
18 |
preprocess_steps: Optional[List[Union[StreamingOperator, str]]] = None
|
19 |
+
templates: Collection = None
|
20 |
+
instructions: Collection = None
|
21 |
|
22 |
|
23 |
class ICLCard(Artifact):
|