Replies: 1 comment
-
when I hear about crashing after a while: maybe you need to hold a reference to this task as a global variable to avoid garbage collection. check for this at first try. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've recently been wrapping a few shell commands in
hs.task
, I've been playing with whisper.cpp and wrapped it in hs.task.But the thing keeps crashing after a while.
I see this note in the docs:
I'm calling the whisper.cpp executable via /usr/local/bin/stdbuf (which chatgpt recommended to make sure I get frequent streaming messages).
The note says it's impossible to get their output while they run? but it works fine for me, I use a streaming callback and get the output live.
What does the note mean regarding buffers? Is it hammerspoon that's gathering all the output to pass it to the final callback? Or something else?
Tell me your tricks, are there workarounds?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions