Spaces:
Sleeping
Sleeping
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -77,7 +77,7 @@
|
|
77 |
});
|
78 |
});
|
79 |
|
80 |
-
|
81 |
// Extract nutritional values (assuming sugar content is labeled as '당류' in Korean)
|
82 |
const regex = /당류\s*:\s*(\d+(\.\d+)?)\s*g\s*/; // This regex might need adjustments based on label format
|
83 |
const match = text.match(regex);
|
|
|
77 |
});
|
78 |
});
|
79 |
|
80 |
+
async function analyzeNutrition(text) {
|
81 |
// Extract nutritional values (assuming sugar content is labeled as '당류' in Korean)
|
82 |
const regex = /당류\s*:\s*(\d+(\.\d+)?)\s*g\s*/; // This regex might need adjustments based on label format
|
83 |
const match = text.match(regex);
|