은승우

Update app.js

Showing 1 changed file with 2 additions and 0 deletions
......@@ -81,10 +81,12 @@ function handleEvent(event) {
}
else if (event.type == 'message'&& event.message.type == 'image') {
return new Promise((resolve,reject)=>{
var cheerio = require('cheerio');
let subscriptionKey = process.env['COMPUTER_VISION_SUBSCRIPTION_KEY'];
let endpoint = process.env['COMPUTER_VISION_ENDPOINT'];
console.log(endpoint);
var uriBase = endpoint + 'vision/v2.1/ocr';
var options = {
uri: uriBase,
......