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
2 changes: 1 addition & 1 deletion roboflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from roboflow.models import CLIPModel, GazeModel # noqa: F401
from roboflow.util.general import write_line

__version__ = "1.2.6"
__version__ = "1.2.7"


def check_key(api_key, model, notebook, num_retries=0):
Expand Down
4 changes: 2 additions & 2 deletions roboflow/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def create_project(self, project_name, project_type, project_license, annotation
Args:
project_name (str): name of the project
project_type (str): type of the project
project_license (str): license of the project (set to `private` for private projects, only available for paid customers)
project_license (str): license of the project (set to `Private` for private projects, only available for paid customers)
annotation (str): annotation of the project

Returns:
Expand All @@ -123,7 +123,7 @@ def create_project(self, project_name, project_type, project_license, annotation
if "error" in r.json().keys():
raise RuntimeError(r.json()["error"])

return self.project(r.json()["id"].split("/")[-1])
return Project(self.__api_key, r.json(), self.model_format)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: API Response Mismatch Causes Project Initialization Errors

The Project constructor is now initialized directly with the create project API response (r.json()). This response likely differs in structure from the get project API response (e.g., dataset_info["project"]) that the constructor expects, which could lead to an incorrectly initialized Project object and unexpected behavior.

Fix in Cursor Fix in Web


def clip_compare(self, dir: str = "", image_ext: str = ".png", target_image: str = "") -> List[dict]:
"""
Expand Down
Loading