We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5b21ac + 39d829e commit b65d788Copy full SHA for b65d788
python/Search/BingVisualSearchv7.py
@@ -6,10 +6,11 @@
6
7
import requests, json
8
9
+# Add your Bing Search V7 endpoint to your environment variables.
10
+BASE_URI = os.environ['BING_SEARCH_V7_ENDPOINT'] + '/bing/v7.0/images/visualsearch'
11
-BASE_URI = 'https://api.cognitive.microsoft.com/bing/v7.0/images/visualsearch'
-
12
-SUBSCRIPTION_KEY = 'your-subscription-key'
+# Add your Bing Search V7 subscription key to your environment variables.
13
+SUBSCRIPTION_KEY = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY']
14
15
imagePath = 'your-image-path'
16
@@ -36,4 +37,4 @@ def print_json(obj):
36
37
38
# Main execution
39
if __name__ == '__main__':
- main()
40
+ main()
0 commit comments