You've already forked DataMate
feature: deer-flow支持从datamate获取外部接入模型 (#83)
* feature: deer-flow支持从datamate获取外部接入模型
This commit is contained in:
10
runtime/ops/examples/test_operator/process.py
Normal file
10
runtime/ops/examples/test_operator/process.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from typing import Dict, Any
|
||||
|
||||
from datamate.core.base_op import Mapper
|
||||
|
||||
|
||||
class TestMapper(Mapper):
|
||||
def execute(self, sample: Dict[str, Any]) -> Dict[str, Any]:
|
||||
sample[self.text_key] += "\n####################\n"
|
||||
return sample
|
||||
Reference in New Issue
Block a user