Upload renderers.py with huggingface_hub
Browse files- renderers.py +4 -1
renderers.py
CHANGED
@@ -81,7 +81,10 @@ class RenderInstruction(Renderer, StreamInstanceOperator):
|
|
81 |
instruction: Instruction
|
82 |
|
83 |
def process(self, instance: Dict[str, Any], stream_name: str = None) -> Dict[str, Any]:
|
84 |
-
|
|
|
|
|
|
|
85 |
return instance
|
86 |
|
87 |
|
|
|
81 |
instruction: Instruction
|
82 |
|
83 |
def process(self, instance: Dict[str, Any], stream_name: str = None) -> Dict[str, Any]:
|
84 |
+
if self.instruction is not None:
|
85 |
+
instance["instruction"] = self.instruction()
|
86 |
+
else:
|
87 |
+
instance["instruction"] = ""
|
88 |
return instance
|
89 |
|
90 |
|