API input payload error

#1
by Lakshmi10 - opened

I'm trying GT4SD crystal property API from my python code.

API URL : https://gt4sd-crystals.hf.space/run/predict

Payload:
image.png

I'm getting this error from the front end

image.png

And in Postman, getting 500 Internal error and error message as
{
"error": "'NoneType' object has no attribute 'lower'"
}

GT4SD - Generative Toolkit for Scientific Discovery org

Hi @Lakshmi10 , I need to have a better look at this but in the meantime you can access this model directly via the GT4SD python library. You can have a look at this notebook on how to perform inference using GT4SD and CGCNN-based models, note that you should provide the path where your cif files are located in the input parameter.

GT4SD - Generative Toolkit for Scientific Discovery org

Hi @Lakshmi10 , to emphasize Dimitrios point, the idea of the spaces apps is to facilitate inference through a UI. For programmatic access, please use the python API as it is much more flexible

jannisborn changed discussion status to closed

I can use GT4SD as a package. But it is not supporting well in windows system. So thought of using it from an API.
So It will be helpful if you mention where I can get the python API ?

Lakshmi10 changed discussion status to open
Lakshmi10 changed discussion status to closed
Lakshmi10 changed discussion status to open
GT4SD - Generative Toolkit for Scientific Discovery org

Hi, Thanks for the suggestions.
But python library is not getting installed in my Windows machine. Also In hugging face site (https://huggingface.co/spaces/GT4SD/advanced_manufacturing) itself, model is not working.
Can you please quickly resolve this?

GT4SD - Generative Toolkit for Scientific Discovery org
edited Oct 6, 2023

Hi, for issues with the python library (like installation) please open an issue on the python repo. Without details it's not possible to help you. Also, we do not guarantee support for gt4sd on windows, we focused development on macOS and linux since these are the most popular OS among developers.

The space here is for the webapps. Regarding the catalyst design webapp, we're looking into this

GT4SD - Generative Toolkit for Scientific Discovery org

HI @Lakshmi10 , the advanced manufacturing model is back up running!

jannisborn changed discussion status to closed

Sign up or log in to comment