File size: 750 Bytes
e1ce262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""Entry point – assembles all tabs into one Gradio app."""

import gradio as gr
from config import CHALLENGE_NAME
from tabs.about import build_about_tab
from tabs.registration import build_registration_tab
from tabs.submission   import build_submission_tab
from tabs.leaderboard  import build_leaderboard_tab


with gr.Blocks(title=CHALLENGE_NAME) as demo:
    gr.Markdown(f"# 🏆 {CHALLENGE_NAME}")

    with gr.Tabs():
        with gr.Tab("About"):
            build_about_tab()

        with gr.Tab("Registration"):
            build_registration_tab()

        with gr.Tab("Submission"):
            build_submission_tab()

        with gr.Tab("Leaderboard"):
            build_leaderboard_tab()


if __name__ == "__main__":
    demo.launch()