neuml / paperai

📄 🤖 Semantic search and workflows for medical/scientific papers
Apache License 2.0
1.29k stars 100 forks source link

Error in models.py file of paperai pip package #77

Open SoenkevL opened 6 months ago

SoenkevL commented 6 months ago

When I installed Paperai using pip version 24.0 for python3.11 I got an error that my Embedding was of type None. I could locate the error. There is an issue in the model.py file in line 31 where it should be "if os.path.isfile(os.path.join(path, "config.json")):" instead of "if os.path.isfile(os.path.join(path, "config")):". Atleast that resolved the error for me and afterwards the program worked fine again.

Spiffical commented 3 months ago

Thanks for addressing this! Easy fix.