Skip to content

Conversation

romanr
Copy link

@romanr romanr commented Nov 22, 2024

Fixes #3


For more details, open the Copilot Workspace session.

@Harlech1
Copy link

this doesn't fix :(

@Harlech1
Copy link

func generate() async throws {
var result = try await StableDiffusion.predict(with: client, input: .init(prompt: prompt))
try await result.wait(with: client)
prediction = result
}

func cancel() async throws {
guard var result = prediction else { return }
try await result.cancel(with: client)
}

this might work though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not compile with Swift 6
2 participants