Skip to content

Commit 6c830b0

Browse files
committed
Merge branch 'main' into image-details-endpoint
2 parents 3c3f877 + 01d713f commit 6c830b0

File tree

11 files changed

+452
-317
lines changed

11 files changed

+452
-317
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## 1.1.5
5+
## 1.1.50
66

7-
[stub]
7+
- Added support for Palligema2 model uploads via `upload_model` command with the following model types:
8+
- `paligemma2-3b-pt-224`
9+
- `paligemma2-3b-pt-448`
10+
- `paligemma2-3b-pt-896`

roboflow/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from roboflow.models import CLIPModel, GazeModel # noqa: F401
1616
from roboflow.util.general import write_line
1717

18-
__version__ = "1.1.49"
18+
__version__ = "1.1.53"
1919

2020

2121
def check_key(api_key, model, notebook, num_retries=0):
@@ -43,7 +43,7 @@ def check_key(api_key, model, notebook, num_retries=0):
4343
num_retries += 1
4444
return check_key(api_key, model, notebook, num_retries)
4545
else:
46-
raise RuntimeError("There was an error validating the api key with Roboflow" " server.")
46+
raise RuntimeError("There was an error validating the api key with Roboflow server.")
4747
else:
4848
r = response.json()
4949
return r
@@ -71,7 +71,7 @@ def login(workspace=None, force=False):
7171
# default configuration location
7272
conf_location = os.getenv("ROBOFLOW_CONFIG_DIR", default=default_path)
7373
if os.path.isfile(conf_location) and not force:
74-
write_line("You are already logged into Roboflow. To make a different login," "run roboflow.login(force=True).")
74+
write_line("You are already logged into Roboflow. To make a different login,run roboflow.login(force=True).")
7575
return None
7676
# we could eventually return the workspace object here
7777
# return Roboflow().workspace()

roboflow/adapters/rfapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def save_annotation(
179179

180180

181181
def _save_annotation_url(api_key, project_url, name, image_id, job_name, is_prediction, overwrite=False):
182-
url = f"{API_URL}/dataset/{project_url}/annotate/{image_id}?api_key={api_key}" f"&name={name}"
182+
url = f"{API_URL}/dataset/{project_url}/annotate/{image_id}?api_key={api_key}&name={name}"
183183
if job_name:
184184
url += f"&jobName={job_name}"
185185
if is_prediction:

roboflow/core/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def generate_version(self, settings):
230230
)
231231

232232
r = requests.post(
233-
f"{API_URL}/{self.__workspace}/{self.__project_name}/" f"generate?api_key={self.__api_key}",
233+
f"{API_URL}/{self.__workspace}/{self.__project_name}/generate?api_key={self.__api_key}",
234234
json=settings,
235235
)
236236

@@ -426,7 +426,7 @@ def upload(
426426

427427
if not is_image:
428428
raise RuntimeError(
429-
"The image you provided {} is not a supported file format. We" " currently support: {}.".format(
429+
"The image you provided {} is not a supported file format. We currently support: {}.".format(
430430
image_path, ", ".join(ACCEPTED_IMAGE_FORMATS)
431431
)
432432
)

0 commit comments

Comments
 (0)