Upload operators.py with huggingface_hub
Browse files- operators.py +7 -9
operators.py
CHANGED
|
@@ -1,19 +1,17 @@
|
|
| 1 |
-
from
|
|
|
|
|
|
|
| 2 |
from .artifact import Artifact, fetch_artifact
|
| 3 |
from .operator import (
|
| 4 |
-
|
| 5 |
MultiStreamOperator,
|
| 6 |
SingleStreamOperator,
|
| 7 |
SingleStreamReducer,
|
| 8 |
-
StreamInitializerOperator,
|
| 9 |
Stream,
|
| 10 |
-
|
|
|
|
| 11 |
)
|
| 12 |
-
|
| 13 |
-
from dataclasses import field
|
| 14 |
-
from typing import List, Union, Dict, Optional, Generator, Any, Iterable
|
| 15 |
-
|
| 16 |
-
from typing import Dict, Any
|
| 17 |
|
| 18 |
|
| 19 |
class FromIterables(StreamInitializerOperator):
|
|
|
|
| 1 |
+
from dataclasses import field
|
| 2 |
+
from typing import Any, Dict, Generator, Iterable, List, Optional, Union
|
| 3 |
+
|
| 4 |
from .artifact import Artifact, fetch_artifact
|
| 5 |
from .operator import (
|
| 6 |
+
MultiStream,
|
| 7 |
MultiStreamOperator,
|
| 8 |
SingleStreamOperator,
|
| 9 |
SingleStreamReducer,
|
|
|
|
| 10 |
Stream,
|
| 11 |
+
StreamInitializerOperator,
|
| 12 |
+
StreamInstanceOperator,
|
| 13 |
)
|
| 14 |
+
from .stream import MultiStream, Stream
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
class FromIterables(StreamInitializerOperator):
|