Skip to content

Commit c9aef28

Browse files
authored
Merge pull request #377 from roboflow/feat/change-default-urls-to-serverless
Changing default URLs
2 parents 861e1b4 + c1adb7f commit c9aef28

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

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/classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
self.id = id
5252
self.name = name
5353
self.version = version
54-
self.base_url = "https://classify.roboflow.com/"
54+
self.base_url = "https://serverless.roboflow.com/"
5555

5656
if self.name is not None and version is not None:
5757
self.__generate_url()

roboflow/models/keypoint_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
self.name = name
5353
self.confidence = confidence
5454
self.version = version
55-
self.base_url = "https://detect.roboflow.com/"
55+
self.base_url = "https://serverless.roboflow.com/"
5656

5757
if self.name is not None and version is not None:
5858
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

tests/models/test_instance_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class TestInstanceSegmentation(unittest.TestCase):
4646
dataset_id = "test-123"
4747
version = "23"
4848

49-
api_url = f"https://outline.roboflow.com/{dataset_id}/{version}"
49+
api_url = f"https://serverless.roboflow.com/{dataset_id}/{version}"
5050

5151
_default_params = {
5252
"api_key": api_key,

0 commit comments

Comments
 (0)