Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagoie authored and Andrei Neagoie committed Mar 14, 2023
1 parent 42eecf1 commit 3e3ca22
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,7 @@ class App extends Component {
// for the Face Detect Mode: https://www.clarifai.com/models/face-detection
// If that isn't working, then that means you will have to wait until their servers are back up.

// Old Way:
// app.models.predict(Clarifai.FACE_DETECT_MODEL, this.state.input)

// New Way:
app.models
.predict(
{
id: 'face-detection', //If you want general concepts about image: 'general-image-recognition'
name: 'face-detection', //If you want general concepts about image: 'general-image-recognition'
version: '6dc7e46bc9124c5c8824be4822abe105', //If you want general concepts about image: 'aa7f35c01e0642fda5cf400f543e7c40'
type: 'visual-detector',
}, this.state.input)
app.models.predict('face-detection', this.state.input)
.then(response => {
console.log('hi', response)
if (response) {
Expand Down

0 comments on commit 3e3ca22

Please sign in to comment.