Skip to content

Commit

Permalink
Merge pull request #107 from allenai/pre-demo-fixes
Browse files Browse the repository at this point in the history
Pre demo fixes
  • Loading branch information
Stanley-Jovel authored Dec 5, 2024
2 parents 1c4b13d + a1d0a5c commit 75edead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OLMoE.swift/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ struct BotView: View {

func respond() {
isGenerating = true
isTextEditorFocused = false
Task {
let originalInput = input.trimmingCharacters(in: .whitespacesAndNewlines)
input = "" // Clear the input after sending
scrollToBottom = true
await bot.respond(to: originalInput)
await MainActor.run {
bot.setOutput(to: "")
Expand Down

0 comments on commit 75edead

Please sign in to comment.