Created
March 20, 2019 00:39
-
-
Save andijakl/8413dccb2585d51c89074a46fa4f6645 to your computer and use it in GitHub Desktop.
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