Spaces:
Sleeping
Sleeping
File size: 468 Bytes
92fb48b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | class Markdown:
"""
Markdown report data type for Trackio.
Args:
text (`str`):
Markdown content to log.
"""
TYPE = "trackio.markdown"
def __init__(self, text: str = ""):
if not isinstance(text, str):
raise ValueError("Markdown text must be a string")
self.text = text
def _to_dict(self) -> dict:
return {
"_type": self.TYPE,
"_value": self.text,
}
|