8000 Sync by 0xrohitgarg · Pull Request #2 · 0xrohitgarg/videodb-python · GitHub
[go: up one dir, main page]

Skip to content

Sync #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and priv 8000 acy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion videodb/__about__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" About information for videodb sdk"""


__version__ = "0.2.10"
__version__ = "0.2.11"
__title__ = "videodb"
__author__ = "videodb"
__email__ = "contact@videodb.io"
Expand Down
6 changes: 5 additions & 1 deletion videodb/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(
description: str,
id: str = None,
frames: List[Frame] = [],
metadata: dict = {},
connection=None,
):
self.id = id
Expand All @@ -22,6 +23,7 @@ def __init__(
self.end = end
self.frames: List[Frame] = frames
self.description = description
self.metadata = metadata
self._connection = connection

def __repr__(self) -> str:
Expand All @@ -32,7 +34,8 @@ def __repr__(self) -> str:
f"start={self.start}, "
f"end={self.end}, "
f"frames={self.frames}, "
f"description={self.description})"
f"description={self.description}), "
f"metadata={self.metadata})"
)

def to_json(self):
Expand All @@ -43,6 +46,7 @@ def to_json(self):
"end": self.end,
"frames": [frame.to_json() for frame in self.frames],
"description": self.description,
"metadata": self.metadata,
}

def describe(self, prompt: str = None, model_name=None) -> None:
Expand Down
1 change: 1 addition & 0 deletions videodb/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def _format_scene_collection(self, scene_collection_data: dict) -> SceneCollecti
description=scene.get("description"),
id=scene.get("scene_id"),
frames=frames,
metadata=scene.get("metadata", {}),
connection=self._connection,
)
scenes.append(scene)
Expand Down
0