gr.Blocks.load() is both a class method and an instance method, which is confusing. We should refactor this in 4.0.
Here's a proposal:
- Deprecate
gr.Blocks.load() and gr.Interface.load()
- Instead of the class method, define a
gr.load() that can be used to load any Space whether it be Blocks/Interface, or a model
- For the event trigger, define an instance method
Blocks.page_load()
gr.Blocks.load()is both a class method and an instance method, which is confusing. We should refactor this in 4.0.Here's a proposal:
gr.Blocks.load()andgr.Interface.load()gr.load()that can be used to load any Space whether it be Blocks/Interface, or a modelBlocks.page_load()