Skip to content

Commit

Permalink
update the model prepareUrl endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosemberg committed Dec 30, 2024
1 parent 38e9147 commit 7a86a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roboflow/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ def _upload_zip(
model_file_name: str,
):
# This endpoint returns a signed URL to upload the model
res = requests.get(
f"{API_URL}/{self.url}/models/getDeployUrl?api_key={self.__api_key}&modelType={model_type}&modelName={model_name}&projectIds={','.join(project_ids)}&nocache=true"
res = requests.post(
f"{API_URL}/{self.url}/models/prepareUpload?api_key={self.__api_key}&modelType={model_type}&modelName={model_name}&projectIds={','.join(project_ids)}&nocache=true"
)
try:
res.raise_for_status()
Expand Down

0 comments on commit 7a86a2c

Please sign in to comment.