We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3758abc commit 21f504fCopy full SHA for 21f504f
swift/StableDiffusionCLI/main.swift
@@ -155,7 +155,8 @@ struct StableDiffusionSample: ParsableCommand {
155
}
156
157
func imageName(_ sample: Int, step: Int? = nil) -> String {
158
- var name = prompt.replacingOccurrences(of: " ", with: "_")
+ let fileCharLimit = 75
159
+ var name = prompt.prefix(fileCharLimit).replacingOccurrences(of: " ", with: "_")
160
if imageCount != 1 {
161
name += ".\(sample)"
162
0 commit comments