Skip to content

Commit 5998ad2

Browse files
committed
Changing default URLs
1 parent c83c455 commit 5998ad2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

roboflow/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ def get_conditional_configuration_variable(key, default):
5353
UNIVERSE_URL = get_conditional_configuration_variable("UNIVERSE_URL", "https://universe.roboflow.com")
5454

5555
INSTANCE_SEGMENTATION_URL = get_conditional_configuration_variable(
56-
"INSTANCE_SEGMENTATION_URL", "https://outline.roboflow.com"
56+
"INSTANCE_SEGMENTATION_URL", "https://serverless.roboflow.com"
5757
)
5858
SEMANTIC_SEGMENTATION_URL = get_conditional_configuration_variable(
5959
"SEMANTIC_SEGMENTATION_URL", "https://segment.roboflow.com"
6060
)
61-
OBJECT_DETECTION_URL = get_conditional_configuration_variable("OBJECT_DETECTION_URL", "https://detect.roboflow.com")
61+
OBJECT_DETECTION_URL = get_conditional_configuration_variable("OBJECT_DETECTION_URL", "https://serverless.roboflow.com")
6262

6363
CLIP_FEATURIZE_URL = get_conditional_configuration_variable("CLIP_FEATURIZE_URL", "CLIP FEATURIZE URL NOT IN ENV")
6464
OCR_URL = get_conditional_configuration_variable("OCR_URL", "OCR URL NOT IN ENV")

roboflow/models/keypoint_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(
4949
self.id = id
5050
self.name = name
5151
self.version = version
52-
self.base_url = "https://detect.roboflow.com/"
52+
self.base_url = "https://serverless.roboflow.com/"
5353

5454
if self.name is not None and version is not None:
5555
self.__generate_url()

roboflow/models/object_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def predict( # type: ignore[override]
278278
def webcam(
279279
self,
280280
webcam_id=0,
281-
inference_engine_url="https://detect.roboflow.com/",
281+
inference_engine_url="https://serverless.roboflow.com/",
282282
within_jupyter=False,
283283
confidence=40,
284284
overlap=30,
@@ -291,7 +291,7 @@ def webcam(
291291
292292
Args:
293293
webcam_id (int): Webcam ID (default 0)
294-
inference_engine_url (str): Inference engine address to use (default https://detect.roboflow.com)
294+
inference_engine_url (str): Inference engine address to use (default https://serverless.roboflow.com)
295295
within_jupyter (bool): Whether or not to display the webcam within Jupyter notebook (default True)
296296
confidence (int): Confidence threshold for detections
297297
overlap (int): Overlap threshold for detections

0 commit comments

Comments
 (0)