Skip to content

Commit

Permalink
Merge pull request #94 from wiazur/patch-54
Browse files Browse the repository at this point in the history
Updated key/endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents e5b21ac + 39d829e commit b65d788
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/Search/BingVisualSearchv7.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

import requests, json

# Add your Bing Search V7 endpoint to your environment variables.
BASE_URI = os.environ['BING_SEARCH_V7_ENDPOINT'] + '/bing/v7.0/images/visualsearch'

BASE_URI = 'https://api.cognitive.microsoft.com/bing/v7.0/images/visualsearch'

SUBSCRIPTION_KEY = 'your-subscription-key'
# Add your Bing Search V7 subscription key to your environment variables.
SUBSCRIPTION_KEY = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY']

imagePath = 'your-image-path'

Expand All @@ -36,4 +37,4 @@ def print_json(obj):

# Main execution
if __name__ == '__main__':
main()
main()

0 comments on commit b65d788

Please sign in to comment.