l-min-components 1.7.1568 → 1.7.1569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1568",
3
+ "version": "1.7.1569",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -392,6 +392,27 @@ const setupAnalysis = (data, audioData, score) => {
392
392
  }
393
393
  }
394
394
 
395
+ if (
396
+ data?.comprehension?.length &&
397
+ data?.comprehension?.[0]?.attempt_data_batch?.length
398
+ ) {
399
+ const compreshension = data?.comprehension?.[0];
400
+ const score = Math.floor(compreshension?.aggregatedConfidencePercent || 0);
401
+
402
+ formatted.push({
403
+ id: "comprehension",
404
+ label: "Comprehension",
405
+ data: compreshension,
406
+ score,
407
+ primaryColor: "#febf10",
408
+ bgColor: "#febf1019",
409
+ sideProgress: true,
410
+ responseText: data?.speech_analysis?.[0]?.model_data?.["Reference"],
411
+ });
412
+ totalScore += score;
413
+ modelCount++;
414
+ }
415
+
395
416
  let AiScore = 0;
396
417
  if (modelCount > 0) {
397
418
  AiScore = totalScore / modelCount;