From f4cfe046636e8f8aad3147a6c79b47eef741c24c Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Thu, 22 Feb 2024 08:42:02 -0800 Subject: [PATCH] chore: update examples with new apis --- .../FalCameraSampleApp/ImageStreamingModel.swift | 2 +- Sources/Samples/FalSampleApp/FalSampleApp/ContentView.swift | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/Samples/FalCameraSampleApp/FalCameraSampleApp/ImageStreamingModel.swift b/Sources/Samples/FalCameraSampleApp/FalCameraSampleApp/ImageStreamingModel.swift index 4d15b14..e5d20d1 100644 --- a/Sources/Samples/FalCameraSampleApp/FalCameraSampleApp/ImageStreamingModel.swift +++ b/Sources/Samples/FalCameraSampleApp/FalCameraSampleApp/ImageStreamingModel.swift @@ -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 diff --git a/Sources/Samples/FalSampleApp/FalSampleApp/ContentView.swift b/Sources/Samples/FalSampleApp/FalSampleApp/ContentView.swift index 28642c0..4c2ad12 100644 --- a/Sources/Samples/FalSampleApp/FalSampleApp/ContentView.swift +++ b/Sources/Samples/FalSampleApp/FalSampleApp/ContentView.swift @@ -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