Adds missing parameters to Blocks.load() #2755
Conversation
| api_key: Optional[str] = None, | ||
| alias: Optional[str] = None, | ||
| _js: Optional[str] = None, | ||
| every: None | int = None, |
There was a problem hiding this comment.
No problem bringing a parameter after "" to before "" (the other way around would cause backwards incompatibility)
There was a problem hiding this comment.
Looks like gh markdown messed up what you're trying to say? I don't understand this
There was a problem hiding this comment.
Whoops I meant to say that it's safe to make the _js and every positional parameters instead of just named parameters. Wouldn't have been safe the other way around
|
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2755-all-demos |
aliabd
left a comment
There was a problem hiding this comment.
LGTM, but maybe we should make same changes to Interface.load()?
|
|
Adds
queueand other missing parameters toBlocks.load(), as well as to the documentation.Fixes: #2714
To test, run
and open on multiple tabs. Since
queueis disabled, you should not see a queue on the subsequent tabs and instead they should all run concurrently.As a side note, we should refactor
Blocks.load()altogether, as I suggest in #2754