Spaces:
Build error
Build error
File size: 421 Bytes
c5b2981 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/usr/bin/env python
import gradio as gr
from app import demo as main_demo
def render(profile: gr.OAuthProfile | None) -> dict:
return gr.Column(visible=profile is not None)
with gr.Blocks() as demo:
gr.LoginButton()
with gr.Column(visible=False) as col:
main_demo.render()
demo.load(fn=render, outputs=col)
if __name__ == "__main__":
demo.queue(api_open=False).launch(show_api=False)
|