Spaces:
Sleeping

File size: 915 Bytes
fe004ef
 
 
 
 
 
 
82b6d58
fe004ef
82b6d58
fe004ef
 
 
 
6711a05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe004ef
 
 
 
88cac68
 
fe004ef
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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()