Upload task.py with huggingface_hub
Browse files
task.py
CHANGED
@@ -8,6 +8,15 @@ class Tasker:
|
|
8 |
|
9 |
|
10 |
class FormTask(Tasker, StreamInstanceOperator):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
inputs: List[str]
|
12 |
outputs: List[str]
|
13 |
metrics: List[str]
|
|
|
8 |
|
9 |
|
10 |
class FormTask(Tasker, StreamInstanceOperator):
|
11 |
+
"""FormTask packs the different instance fields into dictionaries by their roles in the task.
|
12 |
+
|
13 |
+
The output instance contains three fields:
|
14 |
+
"inputs" whose value is a sub-dictionary of the input instance, consisting of all the fields listed in Arg 'inputs'.
|
15 |
+
"outputs" -- for the fields listed in Arg "outputs".
|
16 |
+
"metrics" -- to contain the value of Arg 'metrics'
|
17 |
+
|
18 |
+
"""
|
19 |
+
|
20 |
inputs: List[str]
|
21 |
outputs: List[str]
|
22 |
metrics: List[str]
|