Upload fusion.py with huggingface_hub
Browse files
fusion.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from .stream import MultiStream
|
2 |
+
|
3 |
+
from .loaders import Loader
|
4 |
+
from .splitters import Splitter
|
5 |
+
from .task import Tasker
|
6 |
+
from .render import Templater
|
7 |
+
|
8 |
+
from typing import Optional, List
|
9 |
+
|
10 |
+
|
11 |
+
class Fusion(StreamSource):
|
12 |
+
pass
|
13 |
+
|
14 |
+
|
15 |
+
class RecipeFusion(StreamSource):
|
16 |
+
recepies: List[Recipe]
|
17 |
+
|
18 |
+
def __call__(self) -> MultiStream:
|
19 |
+
for recipe in self.recepies:
|
20 |
+
stream = recipe()
|
21 |
+
return stream
|