- Python >=3.8
- Node.js >= 18.0
pip install fal-serverless
After installation is complete, you can authenticate:
fal-serverless auth login
npm install
Generate a secret key for key-based authentication
fal-serverless key generate
Set the generated key ID and secret as environment variables:
export FAL_KEY_ID="your-key-id" FAL_KEY_SECRET="your-key-secret"
The web endpoint uses Google Cloud Storage for saving the inference results. So it needs access to a service account json. You can provide it to fal-serverless like this:
fal-serverless secrets set GCLOUD_SA_JSON "$(cat path-to-my-service-account.json)"
fal-serverless function serve replace.py run_replace --alias replace
And set the provided URL as an environment variable:
export REPLACE_ANYTHING_URL="your-web-endpoint-url"
npm run dev
- Build UI app with Next.js
- Automated deployment