Highlights
Support custom components in gr.load (#8200 72039be
)
It is now possible to load a demo with a custom component with gr.load
.
The custom component must be installed in your system and imported in your python session.
import gradio as gr
import gradio_pdf
demo = gr.load("freddyaboulton/gradiopdf", src="spaces")
if __name__ == "__main__":
demo.launch()
Thanks @freddyaboulton!
Features
- #8121
f5b710c
- chore(deps): update dependency eslint to v9. Thanks @renovate! - #8174
a81e369
- Remove hatch installation in js/app/package.json which is no longer needed. Thanks @whitphx! - #8209
b9afe93
- RenameeventSource_Factory
andfetch_implementation
. Thanks @hannahblair! - #8109
bed2f82
- Implement JS Client tests. Thanks @hannahblair! - #8106
d0a759f
- Pass Error status in /dev/reload stream. Thanks @freddyaboulton! - #7855
611c927
- Lite wheel optimization. Thanks @whitphx! - #8211
91b5cd6
- remove redundant event source logic. Thanks @hannahblair! - #8127
24b2286
- allow the canvas size to be set on theImageEditor
. Thanks @pngwn! - #8205
cfc272f
- Set the show_api flag on Lite. Thanks @whitphx! - #8052
1435d1d
- Extend Interface.from_pipeline() to support Transformers.js.py pipelines on Lite. Thanks @whitphx! - #8189
68dcae5
- Use workspace version for code in _website. Thanks @aliabd!
Fixes
- #8179
6a218b4
- rework upload to be a class method + pass client into each component. Thanks @pngwn! - #8181
cf52ca6
- Ensure connectivity to private HF spaces with SSE protocol. Thanks @hannahblair! - #8169
3a6f1a5
- Only connect to heartbeat if needed. Thanks @freddyaboulton! - #8118
7aca673
- Add eventsource polyfill for Node.js and browser environments. Thanks @hannahblair! - #8158
5671ff1
- fix: handling SIGINT correctly in reload.py, single entrance of block_thread in blocks.py. Thanks @Tiger3018! - #8180
449d0e6
- Refactor analytics to not use api.gradio.app. Thanks @freddyaboulton! - #8182
39791eb
- Convert sse calls in client from async to sync. Thanks @abidlabs! - #8170
08b4e61
- Add ETag to/custom_component
route to control browser caching. Thanks @freddyaboulton! - #8194
2471f79
- run python reload only if python file changed. Thanks @jameszhou02! - #8204
376dfaa
- Specify the fastapi version on Lite to avoid ujson installation which is not available on Pyodide yet. Thanks @whitphx!