diff --git a/roboflow/__init__.py b/roboflow/__init__.py index 424d25d1..9e6996cd 100644 --- a/roboflow/__init__.py +++ b/roboflow/__init__.py @@ -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): diff --git a/roboflow/core/workspace.py b/roboflow/core/workspace.py index c8225ac5..ec73e910 100644 --- a/roboflow/core/workspace.py +++ b/roboflow/core/workspace.py @@ -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: @@ -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) def clip_compare(self, dir: str = "", image_ext: str = ".png", target_image: str = "") -> List[dict]: """