Is it currently possible to display streaming output outside of jupyter notebook? If so, how? #567
Unanswered
calebgasser
asked this question in
Q&A
Replies: 1 comment
-
We just merged support for programmatic streaming in #568. So as of import guidance
from guidance import models, gen
lm = models.Transformers('gpt2')
@guidance
def f(lm):
lm += "Tell me a story about Python." + gen(max_tokens=20)
return lm
for part in lm.stream() + f():
print(part) Open to PRs that make printing work nicely by default outside of the notebook env as well :) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
There might be something for this, or it might not be possible, but I can't seem to figure out how to capture/display the streaming output outside of a jupyter notebook. Is there a way to capture this output and process it myself instead of just getting a bunch of
<IPython.core.display.HTML object>
objects back?Beta Was this translation helpful? Give feedback.
All reactions