Spaces:
Sleeping
Sleeping
Download app.py from FlagOS-Community/README: direct link, hf CLI and curl.
- Browser
- Download file 915 Bytes
-
https://huggingface.co/spaces/FlagOS-Community/README/resolve/main/app.py
- Command line
-
hf download hf://spaces/FlagOS-Community/README/app.py
-
curl -L -o app.py https://huggingface.co/spaces/FlagOS-Community/README/resolve/main/app.py
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() | |