Created
March 20, 2019 00:39
Star
You must be signed in to star a gist
HTML page for simple Microsoft Azure Cognitive Services example for image description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Cognitive Services Sample</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="imageAnalysis.js"></script> | |
</head> | |
<body> | |
<div> | |
<!-- Insert text input for entering the subscription key, with id="subscriptionKey" --> | |
<!-- Use a label and an input element --> | |
<label for="subscriptionKey">Enter your cloud subscription key:</label> | |
<input type="text" name="subscriptionKey" id="subscriptionKey" required /> | |
</div> | |
<div> | |
<!-- Insert text input for the image URL, with id="inputImage" --> | |
<!-- Use a label and an input element --> | |
<label for="inputImage">Enter image URL:</label> | |
<input type="text" name="inputImage" id="inputImage" required /> | |
</div> | |
<div> | |
<!-- Insert a button that executes the JavaScript function analyzeButtonClick() when clicked --> | |
<button onclick="analyzeButtonClick()">Analyze Image</button> | |
</div> | |
<div> | |
<!-- Insert textarea with id="responseTextArea" for text output --> | |
<textarea id="responseTextArea"></textarea> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment