move data folder back

This commit is contained in:
ogabrielluiz 2024-06-18 18:47:04 -03:00
commit c3a45b856b
16 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,17 @@
import random
from langflow.custom import CustomComponent
from langflow.field_typing import Input
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": Input(display_name="Param", options=self.refresh_values)}
def build(self, param: int):
return param