-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live reload for Gradio demo #89
Conversation
Also adds streaming of output tokens.
Reviewing this PR will be easier if you check "ignore whitespace" in the PR settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get to try the demo yet. The changes looked good though. I'll let ZQ be the main reviewer.
Co-authored-by: zqhuang211 <zqhuang@gmail.com>
Co-authored-by: zqhuang211 <zqhuang@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Streaming output looks very nice!
Fixes #80
Now, changes that you make during editing are reflected immediately in the demo. For this to work
demo
has to be a global object, so themain
function has been removed (as recommended by gradio: https://www.gradio.app/guides/quickstart)Also adds streaming of output tokens, using
infer_stream
and queueing.