You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/afbio/miniconda3/envs/lit-nlp/lib/python3.10/site-packages/lit_nlp/examples/sst_pytorch_demo.py", line 237, in <module>
app.run(main)
File "/home/afbio/miniconda3/envs/lit-nlp/lib/python3.10/site-packages/absl/app.py", line 308, in run
_run_main(main, args)
File "/home/afbio/miniconda3/envs/lit-nlp/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
sys.exit(main(argv))
File "/home/afbio/miniconda3/envs/lit-nlp/lib/python3.10/site-packages/lit_nlp/examples/sst_pytorch_demo.py", line 227, in main
models = {"sst": SimpleSentimentModel(model_path)}
TypeError: Can't instantiate abstract class SimpleSentimentModel with abstract method predict
I encoutered the problems when using both pytorch demo?And dont know how to deal with?
The text was updated successfully, but these errors were encountered:
Pls try out the fix above pushed to dev branch, and let us know any issues you still run into. We might do a minor release including this in the future.
I encoutered the problems when using both pytorch demo?And dont know how to deal with?
The text was updated successfully, but these errors were encountered: