File size: 878 Bytes
e07e1fe
cb9c774
0c2e6b9
38a8f52
cb9c774
 
 
 
 
38a8f52
cb9c774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0c2e6b9
cb9c774
 
 
 
 
 
 
 
 
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
from tinysql_model_demo import model_demo
from tinysql_dataset_viewer import dataset_viewer
import gradio as gr

custom_css = """
:root {
    --martian-orange: #FF6B4A;
    --martian-black: #0A0A0A;
}

.gradio-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--martian-black) !important;
}

.tab-nav button {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.tab-nav button.selected {
    border-bottom: 3px solid var(--martian-orange) !important;
    color: var(--martian-orange) !important;
}
"""

with gr.Blocks(css=custom_css, title="TinySQL Demo") as demo:
    with gr.Tabs():
        with gr.Tab("Model Demo"):
            model_demo()
        with gr.Tab("Dataset Viewer"):
            dataset_viewer()

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