Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /digitranslab_kozmoai /src /backend /tests /data /component.py
| import random | |
| from kozmoai.custom import CustomComponent | |
| class TestComponent(CustomComponent): | |
| def refresh_values(self): | |
| # This is a function that will be called every time the component is updated | |
| # and should return a list of random strings | |
| return [f"Random {random.randint(1, 100)}" for _ in range(5)] # noqa: S311 | |
| def build_config(self): | |
| return {"param": {"display_name": "Param", "options": self.refresh_values}} | |
| def build(self, param: int): | |
| return param | |
Xet Storage Details
- Size:
- 518 Bytes
- Xet hash:
- 5432764431046da018e8509ea39d255a53258209c19df0f104405b620c85e066
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.