Skip to content

Commit 3315d47

Browse files
authored
Updated endpoint
Endpoints are not region-based anymore, but rather custom domain -based. Although regional endpoints will still work. Also, the authentication information is moving to a standard of getting it from environment variables.
1 parent 0bc8423 commit 3315d47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/vision/custom_vision_training_samples.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
SUBSCRIPTION_KEY_ENV_NAME = "CUSTOMVISION_TRAINING_KEY"
77
SAMPLE_PROJECT_NAME = "Python SDK Sample"
88

9-
ENDPOINT = "https://southcentralus.api.cognitive.microsoft.com"
9+
# Add your Custom Vision endpoint to your environment variables.
10+
ENDPOINT = os.environ["CUSTOM_VISION_ENDPOINT"]
1011

1112
IMAGES_FOLDER = os.path.join(os.path.dirname(
1213
os.path.realpath(__file__)), "images")

0 commit comments

Comments
 (0)