Spaces:
Running
Running
File size: 243 Bytes
2319518 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from dataclasses import dataclass
# TODO: use pydantic instead?
@dataclass
class RefMaterial:
url: str
text: list
def to_dict(self) -> dict:
return {
'url': self.url,
'text': self.text,
}
|