@@ -43,17 +43,12 @@ workflows:
|
|||||||
when:
|
when:
|
||||||
and:
|
and:
|
||||||
- matches:
|
- matches:
|
||||||
pattern: "^(?!pull/)[-_./\\w]+$"
|
pattern: "^(?!pull/)[-\\w]+$"
|
||||||
value: << pipeline.git.branch >>
|
value: << pipeline.git.branch >>
|
||||||
- not: << pipeline.parameters.nightly_build >>
|
- not: << pipeline.parameters.nightly_build >>
|
||||||
- not: << pipeline.parameters.weekly_build >>
|
- not: << pipeline.parameters.weekly_build >>
|
||||||
jobs:
|
jobs:
|
||||||
- hold:
|
- mac_build_and_test
|
||||||
type: approval
|
|
||||||
- apple/authenticate:
|
|
||||||
context: pr-approval
|
|
||||||
- mac_build_and_test:
|
|
||||||
requires: [ hold ]
|
|
||||||
|
|
||||||
prb:
|
prb:
|
||||||
when:
|
when:
|
||||||
|
|||||||
@@ -16,11 +16,21 @@ struct ContentView: View {
|
|||||||
VStack {
|
VStack {
|
||||||
// show the model output
|
// show the model output
|
||||||
ScrollView(.vertical) {
|
ScrollView(.vertical) {
|
||||||
if llm.running {
|
ScrollViewReader { sp in
|
||||||
ProgressView()
|
if llm.running {
|
||||||
|
ProgressView()
|
||||||
|
}
|
||||||
|
Text(llm.output)
|
||||||
|
.textSelection(.enabled)
|
||||||
|
|
||||||
|
.onChange(of: llm.output) { _, _ in
|
||||||
|
sp.scrollTo("bottom")
|
||||||
|
}
|
||||||
|
|
||||||
|
Spacer()
|
||||||
|
.frame(width: 1, height: 1)
|
||||||
|
.id("bottom")
|
||||||
}
|
}
|
||||||
Text(llm.output)
|
|
||||||
.textSelection(.enabled)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
|
|||||||
Reference in New Issue
Block a user