TypeError: Cannot read property 'map' of undefined when using the BERT model
Closed this issue · 1 comments
WissamAntoun commented
This the console output from chrome
start.js:formatted:388 Uncaught (in promise) TypeError: Cannot read property 'map' of undefined
at u._wrangle (start.js:formatted:388)
at update (start.js:formatted:290)
at $ (start.js:formatted:664)
gpt2 works fine, I verified that lm.check_probabilities
works fine. The issue must be from the TypeScript code which I'm not familiar with
WissamAntoun commented
the issue is that the request is always sending gpt-2-simple
to the analyze function even if the model was BERT