Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박다솔
/
Language detection translator Line Chat Bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Network
Create a new issue
Commits
Issue Boards
Authored by
Ubuntu
2020-06-25 15:59:27 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9ebdc3a74a20d8b17c26a371ca31d5b35ca1b3e5
9ebdc3a7
1 parent
058966f0
final
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
9ebdc3a
...
...
@@ -5,7 +5,7 @@ const session = require('express-session');
const
util
=
require
(
'util'
);
const
vision
=
require
(
'@google-cloud/vision'
);
//google cloud vision api module
const
{
Translate
}
=
require
(
'@google-cloud/translate'
).
v2
;
const
credentials
=
require
(
'/home/ubuntu/termproject/focused-clock-277615-3a427d503822.json'
);
const
credentials
=
require
(
keyFilename
);
const
translate
=
new
Translate
({
credentials
});
const
client
=
new
vision
.
ImageAnnotatorClient
(
{
credentials
}
);
const
{
Storage
}
=
require
(
'@google-cloud/storage'
);
//google cloud translate api storage api moudle
...
...
Please
register
or
login
to post a comment