Spaces:
Sleeping
Sleeping
Create app.py
Browse files123456789101112131415161718192021222324252627282930import gradio as gr
RACE_URL = "https://flagos.io/RaceDetail?id=295v67vw&lang=en"
with gr.Blocks() as demo: gr.Markdown( """ # ๐ FlagOS Competition
Welcome to the FlagOS competition ๐ Click the button below to open the official competition page. """ )
gr.Button("๐ Go to Competition Page").click( None, None, None, _js=f"() => window.open('{RACE_URL}', '_blank')" )
gr.Markdown( """ --- If the page cannot be embedded, this is due to browser security rules. The button redirect will always work. """ )
demo.launch()app.pyAdded+30