Elron commited on
Commit
6b8ec9b
1 Parent(s): 483867f

Upload renderers.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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
- instance["instruction"] = self.instruction()
 
 
 
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