Skip to content

Commit

Permalink
chore: update examples with new apis
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Feb 22, 2024
1 parent 133bdfa commit f4cfe04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ImageStreamingModel: ObservableObject, ImageStreamingDelegate {
init(imageStreaming: ImageStreaming = ImageStreaming()) {
// simplified error handling for demo purposes
connection = try? fal.realtime.connect(
to: TurboApp,
to: "fal-ai/fast-turbo-diffusion/image-to-image",
connectionKey: "swift-realtime-camera-demo",
throttleInterval: .never
) { result in
Expand Down
4 changes: 3 additions & 1 deletion Sources/Samples/FalSampleApp/FalSampleApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ struct ContentView: View {
isLoading = true
do {
let result = try await fal.subscribe(
to: "fal-ai/fast-sdxl",
to: "fal-ai/fast-lightning-sdxl",
input: [
"prompt": .string(PROMPT),
],
pollInterval: .milliseconds(500),
timeout: .seconds(5),
includeLogs: true
) { update in
update.logs
Expand Down

0 comments on commit f4cfe04

Please sign in to comment.