Append visionOS support to LLMEval (#43)

* Update `mlx-swift` to last revision

* Add Apple Vision Target

* Update visionOS UI
This commit is contained in:
Florent Morin
2024-04-01 05:48:46 +02:00
committed by GitHub
parent 0199407d93
commit e48e2ce2c9
3 changed files with 22 additions and 11 deletions

View File

@@ -47,7 +47,11 @@ struct ContentView: View {
}
.pickerStyle(.segmented)
.frame(maxWidth: 150)
#if os(visionOS)
.frame(maxWidth: 250)
#else
.frame(maxWidth: 150)
#endif
}
}
@@ -77,11 +81,18 @@ struct ContentView: View {
TextField("prompt", text: $prompt)
.onSubmit(generate)
.disabled(llm.running)
#if os(visionOS)
.textFieldStyle(.roundedBorder)
#endif
Button("generate", action: generate)
.disabled(llm.running)
}
}
.padding()
#if os(visionOS)
.padding(40)
#else
.padding()
#endif
.toolbar {
ToolbarItem {
Label(