Skip to content

Commit 5ccbc08

Browse files
committed
base_url in object_detection.py expects a trailing slash
1 parent 61bd962 commit 5ccbc08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roboflow/models/object_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(
8080

8181
# local needs to be passed from Project
8282
if local is None:
83-
self.base_url = OBJECT_DETECTION_URL
83+
self.base_url = OBJECT_DETECTION_URL + '/'
8484
else:
8585
print("initalizing local object detection model hosted at :" + local)
8686
self.base_url = local
@@ -515,7 +515,7 @@ def __generate_url(
515515
# Reassign parameters if any parameters are changed
516516
if local is not None:
517517
if not local:
518-
self.base_url = OBJECT_DETECTION_URL
518+
self.base_url = OBJECT_DETECTION_URL +'/'
519519
else:
520520
self.base_url = "http://localhost:9001/"
521521

0 commit comments

Comments
 (0)