ikarasz commited on
Commit
441e17b
·
1 Parent(s): c1fe34c

temporarily expose raw on_task prediction in talkMoments

Browse files

Adds onTask: {label, score} to to_talk_timeline_dict's output so we
can see the actual model prediction directly in the API response
while debugging mathWord showing 0/0 on a real transcript via the
hosted endpoint. Remove once the root cause is confirmed.

Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -101,6 +101,7 @@ class Utterance:
101
  'wordCount': self.word_count,
102
  'numMathTerms': self.num_math_terms,
103
  'mathTerms': self.math_terms,
 
104
  'vocabularyTerms': self.vocabulary_terms,
105
  'vocabularyMatches': self.vocabulary_matches
106
  }
 
101
  'wordCount': self.word_count,
102
  'numMathTerms': self.num_math_terms,
103
  'mathTerms': self.math_terms,
104
+ 'onTask': self.on_task, # temporary: raw {label, score} for debugging mathWord source
105
  'vocabularyTerms': self.vocabulary_terms,
106
  'vocabularyMatches': self.vocabulary_matches
107
  }