Spaces:
Sleeping

README / app.py
FlagOSOfficial's picture
Update app.py
82b6d58 verified
Raw History Blame Contribute Delete
915 Bytes
import gradio as gr
RACE_URL = "https://flagos.io/RaceDetail?id=295v67vw&lang=en"
with gr.Blocks() as demo:
gr.Markdown(
"""
# 🏁 FlagOS Open Computing Global Challenge
Welcome to the FlagOS Open Computing Global Challenge πŸ‘‹
Click the button below to open the official competition page.
"""
)
gr.HTML(f"""
<a href="{RACE_URL}" target="_blank">
<button style="
padding: 12px 24px;
font-size: 16px;
border-radius: 8px;
background-color: #2563eb;
color: white;
border: none;
cursor: pointer;
">
πŸš€ Go to Competition Page
</button>
</a>
""")
gr.Markdown(
"""
---
If embedding is blocked by browser security rules,
the button redirect will always work.
"""
)
demo.launch()