Skip to content

pkhanal/lightbend-watson-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adding cognitive capability to play application

Sample application for the blog post:
https://pkhanal.github.io/post/add-cognitive-capability-to-play-application/

Setup

  • copy conf/sample.watson.conf to watson.conf
  • copy credentials for Visual Recognition and Language translation service into conf/watson/conf

Run

Run following command from the project directory:

sbt run

Test Image Classification endpoint

curl -G "http://localhost:9000/imageClassification" --data-urlencode "imageUrl=https://visual-recognition-demo.mybluemix.net/images/samples/5.jpg"

Test Langauge Translation endpoint

curl -G "http://localhost:9000/translation" --data-urlencode "text=hello" --data-urlencode "from=en" --data-urlencode "to=fr"

About

Adding cognitive capability to play application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published