Skip to content

Commit

Permalink
Fix loss (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLibeau authored Mar 30, 2023
1 parent 94a0bb7 commit f718a09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function buildNlpApi(nlpApiBaseUrl: string): nlpApiType {
},
async fetchNlpLoss(document, treatments) {
const response = await axios({
data: { document, treatments },
data: { text: document.text, treatments },
headers: { 'Content-Type': 'application/json' },
method: 'post',
url: `${nlpApiBaseUrl}/loss`,
Expand Down

0 comments on commit f718a09

Please sign in to comment.