Implementation notes
The application can load multiple different SD models lazily by taking it as
an input parameter and passing it load_model
. @fal.cached
is input aware
so if you pass a different input (e.g. SD1.5
vs SDXL
) it will actually
reload the code and give you the new model (the old one will still be kept in
cache in case you might need it).