Buckets:

download
raw
505 Bytes
import random
from langflow.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)]
def build_config(self):
return {"param": {"display_name": "Param", "options": self.refresh_values}}
def build(self, param: int):
return param

Xet Storage Details

Size:
505 Bytes
·
Xet hash:
bcc466fbd0dd91e4f8dd9cf98bf4337ef6cda13297223625f576bc7613423559

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.