Datasets:

ArXiv:
Elron commited on
Commit
2a0fd88
1 Parent(s): 9cceadb

Upload card.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. card.py +3 -2
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: Union[TemplatesList, TemplatesDict] = None
19
- instructions: Union[InstructionsList, InstructionsDict] = None
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):