Upload recipe.py with huggingface_hub
Browse files
recipe.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from .operator import SourceSequntialOperator
|
2 |
+
|
3 |
+
|
4 |
+
class Recipe:
|
5 |
+
pass
|
6 |
+
|
7 |
+
|
8 |
+
class SequentialRecipe(Recipe, SourceSequntialOperator):
|
9 |
+
pass
|
10 |
+
|
11 |
+
|
12 |
+
# class CommonRecipe(Recipe, SourceOperator):
|
13 |
+
|
14 |
+
# task_card: TaskCard = None
|
15 |
+
|
16 |
+
# def prepare(self):
|
17 |
+
# self.recipe = SequentialRecipe(
|
18 |
+
# self.task_card.preprocess,
|
19 |
+
# self.task_card.task,
|
20 |
+
# RenderTemplatedICL(
|
21 |
+
|
22 |
+
# )
|
23 |
+
# )
|