quick fix

This commit is contained in:
szymonj98 2023-05-28 14:58:25 +02:00
parent 01d0798581
commit 2b150427f2

View File

@ -77,7 +77,7 @@ export class SentimentAnalysisComponent implements OnInit {
let value = this.sentimentForm.value
sentences = value.sentences.map((value: any) => value.text)
}
this.http.put('http://127.0.0.1:5000/get_sentiment_data', { sentences: sentences }).subscribe({
this.http.post('http://127.0.0.1:5000/get_sentiment_data', { sentences: sentences }).subscribe({
next: (resp: any) => {
this.results = resp.predictions
console.log(resp)