Skip to content

Instantly share code, notes, and snippets.

@NickEngmann
Created October 16, 2018 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickEngmann/a0018d3956c92413af3c6df73489e08f to your computer and use it in GitHub Desktop.
Save NickEngmann/a0018d3956c92413af3c6df73489e08f to your computer and use it in GitHub Desktop.
this.setState({
listing: newListing
}, () => {
// Get concepts from clarifai
fetch('http://127.0.0.1:5000/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: this.state.listing.photo
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment