Skip to content
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
3 changes: 3 additions & 0 deletions vlmrun/client/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def _handle_images_or_urls(
def execute(
self,
name: str,
version: str = "latest",
images: Optional[List[Union[Path, Image.Image]]] = None,
urls: Optional[List[str]] = None,
batch: bool = False,
Expand All @@ -189,6 +190,7 @@ def execute(

Args:
name: Name of the model to use
version: Version of the model to use
images: List of file paths (Path) or PIL Image objects to process. Either images or urls must be provided.
urls: List of HTTP URLs pointing to images. Either images or urls must be provided.
batch: Whether to run prediction in batch mode
Expand All @@ -213,6 +215,7 @@ def execute(
url="image/execute",
data={
"name": name,
"version": version,
"images": images_data,
"batch": batch,
"callback_url": callback_url,
Expand Down
2 changes: 1 addition & 1 deletion vlmrun/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.14"
__version__ = "0.2.14"
Loading