Run AI prediction functions (a.k.a. "predictors") on mobile, web, and in the cloud--all from a predict
function in a Jupyter Notebook. Go from this:
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=float16)
def predict (prompt: str):
# Generate an image using Stable Diffusion
return pipeline(prompt).images[0]
To this:
If you don't have your own predictor, or don't know how to create one, you can use any of the available predictors on Function. You can make predictions using our client libraries:
- Function for Python. Make predictions in your Python, FastAPI, Flask, and Django apps.
- Function for JavaScript. Make predictions in your web, Node.js, Next.js, and React apps.
- Function for Unity3D. Make predictions in your Unity apps and games.
- Function CLI. Make predictions in the command line.
We have clients for iOS (Swift) and Android (Java/Kotlin) coming soon! A few useful links:
- Join our Discord community.
- Check out our docs.
- Learn more about us on our blog.
- Reach out to us at hi@fxn.ai.
Function is a product of NatML Inc.