def read_from_flag(self, payload: Any):
        """
        Convert the data from the csv or jsonl file into the component state.
        """
        if self.data_model:
            return self.data_model.from_json(json.loads(payload))
        return payload

        Convert the data from the csv or jsonl file into the component state.
        
gradio/components/base.py