Created
October 16, 2018 06:55
-
-
Save NickEngmann/a0018d3956c92413af3c6df73489e08f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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