-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Only render visible components #10192
base: main
Are you sure you want to change the base?
Conversation
* changes * add changeset * hash * changes * remove * changes * rename * internal * changes * remove json path * merge * fix tests --------- Co-authored-by: gradio-pr-bot <[email protected]>
* remove logoutbutton page * remove huggingfacedatasetsaver
* HTTP live streaming * type check * fix code * Fix code * add code * Video demo * Fix tests * Update notebook * Add guide * Fix demo * Allow downloading * revert * Fix download filename * lint * notebooks * fix video demo * Fix config * Fix audio repeated play bug * Improve guide * fix audio? * Use cantina * Code * type check * add code * Use runtimeerror * Add code
* prevent null origin requests by default * changes * add changeset * format --------- Co-authored-by: gradio-pr-bot <[email protected]>
* Tweaks * Better * typo * lint
* changes * changes * add changeset * add changeset * Ci security tweaks (#9010) * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * change * changes * changes * changes * changes * changes * changes --------- Co-authored-by: Ali Abid <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: pngwn <[email protected]>
* changes * changes * changes --------- Co-authored-by: Ali Abid <[email protected]>
* changes * add changeset * docstring * change * client changess --------- Co-authored-by: gradio-pr-bot <[email protected]>
…preprocessing (#9073) * audio format * add changeset * lint * docstring * format * fix tests * tweaks * refactor * fix --------- Co-authored-by: gradio-pr-bot <[email protected]>
* Fix code * Add code * Add code * working demo * hacky video * Add code for video * Fixing some code * clean queieing * low streaming mode audio * reworking * remove console * Pretty good spot * Delete unused * consolidate * Add progress bar * Set time limit null * delete * Fix then issue * merge out * Add code * clean up * Remove base64 * Add code * minor bugs * End stream * Fix rerender * remove unwanted * Address streaming comments * Commit file lol * ;int * lint backend * lint * Fix queue status. Stream_every defined in event * Fix types * Add code * Add code * Add code * queue time * docstring wording * Fix typo * add changeset --------- Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]>
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-pypi-previews.s3.amazonaws.com/affd1353009e3ddcec102cbbe0feb6350ba2f68d/gradio-5.9.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@affd1353009e3ddcec102cbbe0feb6350ba2f68d#subdirectory=client/python" Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/affd1353009e3ddcec102cbbe0feb6350ba2f68d/gradio-client-1.8.0.tgz Use Lite from this PR <script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/affd1353009e3ddcec102cbbe0feb6350ba2f68d/dist/lite.js""></script> |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
Very very cool @pngwn! I tried a lot of demos and generally everything is working as expected. Only two exceptions: (1) The ImageEditor does not seem to be saving its state when unrendered and re-rendered. Try with this example: import gradio as gr
with gr.Blocks() as demo:
with gr.Tab("Abc"):
gr.Textbox()
with gr.Tab("Abc"):
gr.ImageEditor()
demo.launch() Screen.Recording.2024-12-16.at.3.54.09.PM.movI checked and on (2) The webcam also seems to reset when unrendered and re-rendered. Try running Screen.Recording.2024-12-16.at.3.52.40.PM.movIt turns out that the behavior on |
Tried to break it with gr.render but everything worked great! |
Closes: #5311