Skip to content

Commit 3d14578

Browse files
Add VO2 max metric support and fix identifier extraction for VO2
- Added VO2 max as new metric with comprehensive synonym support - Added 23 synonyms including: vo2, vo2 max, aerobic capacity, cardio fitness, cardiovascular fitness, oxygen uptake, endurance capacity, fitness level - Added vo2Regex pattern for context detection - Updated extractUnit to return 'ml/kg/min' for VO2 context - Added unit default 'ml/kg/min' in SetThreshold metric switch for both Kotlin and Swift - Added 9 inference patterns for recognizing VO2-related queries - Fixed extractIdentifier to skip 'maximum' pattern when VO2 context detected (prevents 'max' in 'vo2 max' from being interpreted as maximum identifier) - Maintained platform parity between Android (Kotlin) and iOS (Swift) - Updated TFLite model to 'Intent classifier 10-12-2025.tflite' in Android - VO2 metric now fully functional in QueryPoint, SetGoal, and SetThreshold intents
1 parent 0fc7497 commit 3d14578

File tree

4 files changed

+427
-85
lines changed

4 files changed

+427
-85
lines changed
Binary file not shown.

examples/whisper.android/app/src/main/java/com/whispercppdemo/intent/IntentClassifier.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class IntentClassifier(private val context: Context) {
8282
}
8383

8484
private fun loadIntentClassifier() {
85-
val model = loadModelFile("Intent_classifier 24-11-25.tflite")
85+
val model = loadModelFile("Intent classifier 10-12-2025.tflite")
8686
intentClassifier = Interpreter(model)
8787

8888
val inputDetails = intentClassifier!!.inputTensorCount

0 commit comments

Comments
 (0)