Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please Add Api 4.0 Version #8

Open
manishsharma0196 opened this issue Oct 30, 2023 · 1 comment
Open

Please Add Api 4.0 Version #8

manishsharma0196 opened this issue Oct 30, 2023 · 1 comment

Comments

@manishsharma0196
Copy link

@manishsharma0196
Copy link
Author

 conn = http.client.HTTPSConnection(MICROSOFT_VISION_API_ENDPOINT)
    conn.request("POST", "/vision/v40/describe?%s" % params, data, headers)
    response = conn.getresponse()
    data = response.read()
    json_data = json.loads(data)
    caption_text = json_data['description']['captions'][0]['text']
    conn.close()
    return caption_text
except Exception as e:
    print("Exception while communicating with vision api- ", str(e))
    
    
    i add apiv4.0 but not workings code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant