Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
olokobayusuf committed Nov 1, 2024
2 parents a51a350 + 1bb49ce commit 09121bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: "...")
Expand All @@ -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

Expand Down Expand Up @@ -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).

0 comments on commit 09121bb

Please sign in to comment.