Upload card.py with huggingface_hub
Browse files
card.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .artifact import Artifact
|
| 2 |
+
from .operator import StreamingOperator
|
| 3 |
+
from .templates import TemplatesList, TemplatesDict
|
| 4 |
+
from .instructions import InstructionsList, InstructionsDict
|
| 5 |
+
from .loaders import Loader
|
| 6 |
+
from .task import FormTask
|
| 7 |
+
|
| 8 |
+
from typing import Union, List, Optional
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
class TaskCard(Artifact):
|
| 12 |
+
loader: Loader
|
| 13 |
+
task: FormTask
|
| 14 |
+
preprocess_steps: Optional[List[StreamingOperator]] = None
|
| 15 |
+
templates: Union[TemplatesList, TemplatesDict] = None
|
| 16 |
+
instructions: Union[InstructionsList, InstructionsDict] = None
|