File size: 1,302 Bytes
5a59c13
0a8b4a2
5a59c13
0a8b4a2
 
 
5a59c13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a8b4a2
5a59c13
 
 
 
 
 
0a8b4a2
5a59c13
 
 
 
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import gradio as gr
import spaces

from src.ui import (
    image_tab,
)


css = """
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
body {
    font-family: 'Poppins', sans-serif !important;
}
.center-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.center-content h1 {
    font-weight: 600;
    margin-bottom: 1rem;
}
.center-content p {
    margin-bottom: 1.5rem;
}
"""


# Main Gradio app
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
    # Header
    with gr.Column(elem_classes="center-content"):
        gr.Markdown("""
        # πŸš€ AAI: All AI
        Unleash your creativity with our multi-modal AI platform.
        [![Sync code to HF Space](https://github.com/mantrakp04/aai/actions/workflows/hf-space.yml/badge.svg)](https://github.com/mantrakp04/aai/actions/workflows/hf-space.yml)
        """)

    # Tabs
    with gr.Tabs():
        with gr.Tab(label="πŸ–ΌοΈ Image"):
            image_tab()
        with gr.Tab(label="🎡 Audio"):
            gr.Label("Coming soon!")
        with gr.Tab(label="🎬 Video"):
            gr.Label("Coming soon!")
        with gr.Tab(label="πŸ“„ Text"):
            gr.Label("Coming soon!")
    
demo.launch(
    share=False,
    debug=True,
)