HendrikStrobelt / detecting-fake-text

Giant Language Model Test Room
Apache License 2.0
462 stars 112 forks source link

TypeError: Cannot read property 'map' of undefined when using the BERT model #23

Closed WissamAntoun closed 3 years ago

WissamAntoun commented 3 years ago

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 3 years ago

the issue is that the request is always sending gpt-2-simple to the analyze function even if the model was BERT