Use newer version of replicate/replicate-javascript and update API ca…
Hi, I was receiving 500 errors when running the app, this commit fixes it for me - hopefully fixes for others too.
I pulled in a newer version of the replicate-javascript API and updated the API call params to reflect the changes. Used newest model version from https://replicate.com/rossjillian/controlnet for API call.
Also added in a basic default base URL for WEBHOOK_HOST as the API complains about this being an invalid URL if neither VERCEL_URL or NGROK_HOST are set.
@mhatma is attempting to deploy a commit to the Replicate Team on Vercel.
A member of the Team first needs to authorize it.
ty 🙂
Hi @mhatma. Sorry for the delay reviewing this. The code on the main branch has changed a bit since you opened this PR. Are you able to take a look at updating your changes?