This is a minimal example of using the Fermyon Serverless AI inside of your serverless function.
The code is in src/index.ts
Please check the repo's README for prerequisites for running this example.
$ npm install
$ spin build --up
Note: If you are using the Cloud GPU component, remember to reference the
runtime-config.toml
file, e.g.:spin build --up --runtime-config-file ./runtime-config.toml
.
$ cd api
$ spin deploy