Skip to content

Commit

Permalink
Merge branch 'main' into fix/make-landing-page-no-index
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz-roboflow authored Jan 22, 2025
2 parents 66c8919 + 4835606 commit a4bc54d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inference/core/roboflow_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ def get_workflow_specification(
try:
workflow_config = json.loads(response["workflow"]["config"])
specification = workflow_config["specification"]
if isinstance(specification, dict):
specification["id"] = response["workflow"].get("id")
if use_cache:
_cache_workflow_specification_in_ephemeral_cache(
api_key=api_key,
Expand All @@ -571,8 +573,6 @@ def get_workflow_specification(
specification=specification,
ephemeral_cache=ephemeral_cache,
)
if isinstance(specification, dict):
specification["id"] = response["workflow"].get("id")
return specification
except KeyError as error:
raise MalformedWorkflowResponseError(
Expand Down
2 changes: 1 addition & 1 deletion inference/core/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.35.0rc1"
__version__ = "0.35.0rc2"


if __name__ == "__main__":
Expand Down

0 comments on commit a4bc54d

Please sign in to comment.