Open hysts opened 1 month ago
cc @Wauplin do you have a chance to look at this?
Weird... I'll have a look at it yes 👍
@abidlabs I investigated this issue and don't have a clue what's going on here. I duplicated the logincomponent Space (see here) which recreates the warning described in this issue but otherwise I've not been able to reproduce it locally, which makes it really hard to debug.
The warning itself is triggered in LoginButton.__init__(...)
because for some reason, the blocks context is not detected. This check has been first updated in this PR and more recently in this one. I tried several versions, including the most recent one, and the blocks context is never detected. From what I understand from your message here, it is important that we do not activate the button if we're not in a blocks context.
Any idea to move forward?
Really appreciate @Wauplin for looking into this! I'll dive into this when I get some time to see what's going on. This issue itself doesn't seem like a blocker but there may be something deeper going on
Describe the bug
The following warning is always shown when using
gr.LoginButton
.(internal slack)
Have you searched existing issues? 🔎
Reproduction
You can see this warning even in the log of this sample Space under the gradio org on HF Hub.
(The sample Space above is using
gradio==4.31.2
, but the warning appears when usinggradio==4.31.5
too.)Screenshot
Logs
No response
System Info
Severity
I can work around it