Spaces:
Sleeping
Sleeping

instead of returning the image bytes to the api user, we are moving towards hosting them on the backend but we need to be careful moving forwards and make sure that we delete the images after use
28d5b3d
from dataclasses import dataclass | |
from typing import Callable | |
class Clusterer: | |
cluster_func: Callable | |
plot_key = None | |
def eval( | |
self, | |
pred_labels, | |
true_labels, | |
) -> None: | |
... | |
def from_dict(cls, dct: dict): | |
return cls(**dct) | |