fix: add range_spec to AssemblyAITranscriptionJobPoller (#4061)
✨ (AssemblyAIPollTranscript.py): introduce RangeSpec field typing to define a range for polling interval in seconds
This commit is contained in:
parent
ee3035be28
commit
7b3a8b829c
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import assemblyai as aai
|
||||
|
||||
from langflow.custom import Component
|
||||
from langflow.field_typing.range_spec import RangeSpec
|
||||
from langflow.io import DataInput, FloatInput, Output, SecretStrInput
|
||||
from langflow.schema import Data
|
||||
|
||||
|
|
@ -28,6 +29,7 @@ class AssemblyAITranscriptionJobPoller(Component):
|
|||
value=3.0,
|
||||
info="The polling interval in seconds",
|
||||
advanced=True,
|
||||
range_spec=RangeSpec(min=3, max=30),
|
||||
),
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue