OSError: It looks like the config file at 'roberta-base/config.json' is not a valid JSON file

If after the above changes, you’re still running into the error, it may be an issue with Git LFS as described here:

In that case, you would have to store your model elsewhere (e.g. Dropbox, AWS, GCP) and download and cache it from your app.