16 lines
339 B
Python
16 lines
339 B
Python
from dataclasses import dataclass
|
|
from typing import Any
|
|
import numpy as np
|
|
from pydantic import BaseModel
|
|
from pydantic_tensor import Tensor
|
|
from typing import Any, Literal
|
|
from pydantic_core import core_schema
|
|
import base64
|
|
|
|
|
|
@dataclass
|
|
class Symbol(BaseModel):
|
|
id: int
|
|
label: str
|
|
image: str # Base64-encoded PNG image data
|