은승우

Update app.js

Showing 1 changed file with 1 additions and 2 deletions
...@@ -90,7 +90,7 @@ async function handleEvent(event) { ...@@ -90,7 +90,7 @@ async function handleEvent(event) {
90 }); 90 });
91 }); 91 });
92 92
93 - 93 + console.log(file);
94 var cheerio = require('cheerio'); 94 var cheerio = require('cheerio');
95 var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr'; 95 var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr';
96 var options = { 96 var options = {
...@@ -108,7 +108,6 @@ async function handleEvent(event) { ...@@ -108,7 +108,6 @@ async function handleEvent(event) {
108 console.log(body); 108 console.log(body);
109 request.post(options, function (error, response, body) { 109 request.post(options, function (error, response, body) {
110 data=body; 110 data=body;
111 - console.log(data);
112 var text=''; 111 var text='';
113 while(data.indexOf('text\\')!=-1) 112 while(data.indexOf('text\\')!=-1)
114 { 113 {
......