- Notifications
You must be signed in to change notification settings - Fork5
Run Python functions on desktop, mobile, web, and in the cloud.https://fxn.ai/explore
License
fxnai/fxn
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Run prediction functions (a.k.a "predictors") locally in your Python apps, with full GPU acceleration and zero dependencies.
Tip
Join our waitlist to bring your custom Python functions and run them on-device across Android, iOS, macOS, Linux, web, and Windows.
Function is distributed on PyPi. This distribution contains both the Python client and the command line interface (CLI). To install, open a terminal and run the following command:
# Install Function$ pip install --upgrade fxn
Note
Function requires Python 3.10+
Head over tofxn.ai to create an account by logging in. Once you do, generate an access key:
First, create a Function client, specifying your access key:
fromfxnimportFunction# Create the Function clientfxn=Function(access_key="<Function access key>")
Then make a prediction:
# Create a predictionprediction=fxn.predictions.create(tag="@fxn/greeting",inputs={"name":"Peter" })# Print the returned greetingprint(prediction.results[0])
Open up a terminal and login to the Function CLI:
# Login to Function$ fxn auth login<ACCESS KEY>
Then make a prediction:
# Make a prediction using the Function CLI$ fxn predict @fxn/greeting --name Peter
- Discover predictors to use in your apps.
- Join our Discord community.
- Check out our docs.
- Learn more about uson our blog.
- Reach out to us athi@fxn.ai.
Function is a product ofNatML Inc.
About
Run Python functions on desktop, mobile, web, and in the cloud.https://fxn.ai/explore