Skip to content

Commit

Permalink
Add optional duration to FileInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
appelstroop committed Oct 17, 2024
1 parent 289b1a2 commit 50a49aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edenai_apis/utils/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ def __init__(
self.file_extension = file_extension
if args:
self.file_frame_rate, self.file_channels = args

self.file_duration = kwargs.get("duration", None)
file_size: int
file_media_type: str
supported_extensions: List[str]
# for audio and video files
file_frame_rate: Optional[str]
file_channels: Optional[str]
file_duration: Optional[float]



class FileWrapper:
Expand Down

0 comments on commit 50a49aa

Please sign in to comment.