Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /langflow-ai_langflow /src /backend /tests /data /component.py
| import random | |
| from lfx.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:
- 514 Bytes
- Xet hash:
- 69f7a5129495340f8f70406faff320709fdcd4ac130b1289c8522a9f2bd9d784
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.