Adjust some defaults.

pull/12/head
Pedro Cuenca 2 years ago
parent a551caba97
commit 6e20e00c49

@ -16,7 +16,7 @@ struct ContentView: View {
Image("placeholder") Image("placeholder")
.resizable() .resizable()
.aspectRatio(contentMode: .fit) .aspectRatio(contentMode: .fit)
.frame(width: 400, height: 400) .frame(width: 512, height: 512)
.cornerRadius(15) .cornerRadius(15)
.toolbar { .toolbar {
Button(action: {}) { Button(action: {}) {

@ -24,11 +24,12 @@ struct PromptView: View {
static let modelNames = models.map { $0.modelVersion } static let modelNames = models.map { $0.modelVersion }
@State private var model = Settings.shared.currentModel.modelVersion @State private var model = Settings.shared.currentModel.modelVersion
@State private var positivePrompt = "" @State private var positivePrompt = "Labrador in the style of Vermeer"
@State private var negativePrompt = "" @State private var negativePrompt = ""
@State private var steps = 50.0 @State private var steps = 25.0
@State private var numImages = 1.0 @State private var numImages = 1.0
@State private var seed = 386.0 @State private var seed = 386.0
@State private var disclosedPrompt = true
// TODO: refactor download with similar code in Loading.swift (iOS) // TODO: refactor download with similar code in Loading.swift (iOS)
@State private var stateSubscriber: Cancellable? @State private var stateSubscriber: Cancellable?
@ -91,7 +92,7 @@ struct PromptView: View {
Divider() Divider()
DisclosureGroup { DisclosureGroup(isExpanded: $disclosedPrompt) {
Group { Group {
TextField("Positive prompt", text: $positivePrompt, TextField("Positive prompt", text: $positivePrompt,
axis: .vertical).lineLimit(5) axis: .vertical).lineLimit(5)
@ -108,7 +109,7 @@ struct PromptView: View {
Divider() Divider()
DisclosureGroup { DisclosureGroup {
CompactSlider(value: $steps, in: 0...250, step: 5) { CompactSlider(value: $steps, in: 0...150, step: 5) {
Text("Steps") Text("Steps")
Spacer() Spacer()
Text("\(Int(steps))") Text("\(Int(steps))")
@ -144,6 +145,7 @@ struct PromptView: View {
} }
.padding() .padding()
.onAppear { .onAppear {
print(PipelineLoader.models)
modelDidChange(model: ModelInfo.from(modelVersion: model) ?? ModelInfo.v2Base) modelDidChange(model: ModelInfo.from(modelVersion: model) ?? ModelInfo.v2Base)
} }
} }

Loading…
Cancel
Save