ersilia-os / ersilia

The Ersilia Model Hub, a repository of AI/ML models for infectious and neglected disease research.
https://ersilia.io
GNU General Public License v3.0
203 stars 131 forks source link

🐛 Bug: TyperError while using predict api #326

Closed Femme-js closed 1 year ago

Femme-js commented 1 year ago

Describe the bug.

The model eos2gth was fetched and served successfully, but a TypeError is being raised while predicting with the model.

Describe the steps to reproduce the behavior

ersilia -v fetch eos2gth ersilia -v serve eos2gth ersilia -v api predict -i eml_canonical -o eos2gth_out.csv

Expected behavior.

Model test run successfully

Screenshots.

Screenshot from 2022-10-13 09-17-38

Operating environment

Ubuntu 18.04.3 LTS

Additional context

No response

Zainab-ik commented 1 year ago

@Femme-js , can you indicate the model ID in your title for easy identification incase someone has same error.

GemmaTuron commented 1 year ago

Hi @Femme-js

The problem here seems that you are missing the input file name, which should be eml_canonical.csv On your issue I see only eml canonical without the .csv

Also make sure you are either on the folder where eml canonical is stored, or you are adding the path in the input, for example in my case it would be something like that (if I was doing the test on a folder in my Desktop, and I was running commands from the Desktop):

(ersilia) gturon@sotira: cd Desktop
(ersilia) gturon@sotira:~/Desktop$ ersilia -v api predict -i "test/eml_canonical.csv" -o "test/eos2gth_eml.csv"
GemmaTuron commented 1 year ago

@Femme-js when you have time to try this again, let me know if the error is solved! ;)

Femme-js commented 1 year ago

Hi @GemmaTuron ! I missed out this silly mistake. Thanks for your help.

In case someone had the same error, model ID is eos2gth