Spaces:
Sleeping
Sleeping
Vineela Gampa
commited on
fix for measurements
Browse files- data/app.db +0 -0
- web/analyzer.html +7 -0
data/app.db
CHANGED
|
Binary files a/data/app.db and b/data/app.db differ
|
|
|
web/analyzer.html
CHANGED
|
@@ -367,6 +367,12 @@
|
|
| 367 |
: data.Detected_Anomolies
|
| 368 |
? [data.Detected_Anomolies]
|
| 369 |
: [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 370 |
recsOutput.innerHTML = recs.length
|
| 371 |
? recs.map(renderRecCard).join("")
|
| 372 |
: "No recommendations found.";
|
|
@@ -377,6 +383,7 @@
|
|
| 377 |
report_date: new Date(),
|
| 378 |
ocr_text: extractedText,
|
| 379 |
anomalies: JSON.stringify(recs),
|
|
|
|
| 380 |
});
|
| 381 |
}
|
| 382 |
loadingEl.textContent = "Analysis complete.";
|
|
|
|
| 367 |
: data.Detected_Anomolies
|
| 368 |
? [data.Detected_Anomolies]
|
| 369 |
: [];
|
| 370 |
+
|
| 371 |
+
const measurements = Array.isArray(data.measurements)
|
| 372 |
+
? data.measurements
|
| 373 |
+
: data.measurements
|
| 374 |
+
? [data.measurements]
|
| 375 |
+
: [];
|
| 376 |
recsOutput.innerHTML = recs.length
|
| 377 |
? recs.map(renderRecCard).join("")
|
| 378 |
: "No recommendations found.";
|
|
|
|
| 383 |
report_date: new Date(),
|
| 384 |
ocr_text: extractedText,
|
| 385 |
anomalies: JSON.stringify(recs),
|
| 386 |
+
measurements: JSON.stringify(measurements),
|
| 387 |
});
|
| 388 |
}
|
| 389 |
loadingEl.textContent = "Analysis complete.";
|