-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ FXN_ACCESS_KEY="<ACCESS KEY>" | |
## Making a Prediction | ||
First, create a Function client: | ||
```swift | ||
import FunctionSwift; | ||
import FunctionSwift | ||
|
||
// 💥 Create a Function client | ||
let fxn = Function(accessKey: "...") | ||
|
@@ -75,8 +75,8 @@ print("Prediction result: \(prediction.results![0]!)") | |
|
||
## Embedding Predictors | ||
Function normally works by downloading and executing prediction functions at runtime. But because iOS requires | ||
strict sandboxing, ou must download and embed predictors at build-time instead. | ||
The first step is to create an `fxn.config.swift` file at the root of your target directory: | ||
strict sandboxing, you must download and embed predictors at build-time instead. | ||
First, create an `fxn.config.swift` file at the root of your target directory: | ||
```swift | ||
import FunctionSwift | ||
|
||
|
@@ -107,4 +107,4 @@ Function will download the prediction function as a dynamic framework, then conf | |
- Learn more about us [on our blog](https://blog.fxn.ai). | ||
- Reach out to us at [[email protected]](mailto:[email protected]). | ||
|
||
Function is a product of [NatML Inc](https://github.com/natmlx). | ||
Function is a product of [NatML Inc](https://github.com/natmlx). |