Skip to content

Commit

Permalink
fix: add range_spec to AssemblyAITranscriptionJobPoller (langflow-ai#…
Browse files Browse the repository at this point in the history
…4061)

✨ (AssemblyAIPollTranscript.py): introduce RangeSpec field typing to define a range for polling interval in seconds
  • Loading branch information
Cristhianzl authored and diogocabral committed Nov 26, 2024
1 parent 5fdde0e commit ec2da98
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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),
),
]

Expand Down

0 comments on commit ec2da98

Please sign in to comment.