CoolFace
Apppublic

numeco17/numeco17-dspt

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
App README

Sentiment Classification API

Flask API for the Data Science Project sentiment classification model.

Local test

powershell
python app.py

In a second PowerShell terminal:

powershell
Invoke-RestMethod -Uri "http://localhost:8000/"
powershell
$body = @{
    items = @(
        @{
            id = "test"
            text = "I love my new sentiment classification API!"
        }
    )
} | ConvertTo-Json -Depth 5

Invoke-RestMethod `
    -Uri "http://localhost:8000/" `
    -Method POST `
    -ContentType "application/json" `
    -Body $body