Deploy from S3 failed

Hi I tried to deploy a new version about my SetFit model to AWS from S3.
My file model.tar.gz contains the config.json, the deploy is ok but when i call the predict function I have this error
“/opt/ml/model does not appear to have a file named config.json. …”
Has anyone had my same problem?
Thanks

I solved my problem.
When I create the .tar.gz file i compress the model folder, instead I have to directly compress the files inside.