File size: 2,029 Bytes
4eac628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
56
57
58
59
60
61
62
63
64
65
import gradio as gr

with gr.Blocks() as demo:
    gr.Markdown(
        """
        <div style="text-align: center; margin-bottom: 20px;">
            <h1>πŸ“‹ Information Display</h1>
            <p>Two information boxes centered on screen</p>
            <p style="font-size: 0.9em; color: #666;">
                <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" style="color: #6366f1; text-decoration: none;">
                    Built with anycoder
                </a>
            </p>
        </div>
        """
    )
    
    with gr.Row():
        gr.Column(scale=1)
        
        with gr.Column(scale=2):
            with gr.Group():
                gr.Markdown(
                    """
                    ## 🌟 Information Box 1
                    
                    This is the first information box. It contains important details 
                    that you want to display to your users.
                    
                    **Key Features:**
                    - Easy to read layout
                    - Clean design
                    - Responsive styling
                    """
                )
            
            gr.Markdown("<br>")
            
            with gr.Group():
                gr.Markdown(
                    """
                    ## πŸš€ Information Box 2
                    
                    This is the second information box. You can use it to show 
                    additional content or complementary information.
                    
                    **Benefits:**
                    - Organized content
                    - Visual separation
                    - Professional appearance
                    """
                )
        
        gr.Column(scale=1)

demo.launch(
    theme=gr.themes.Soft(
        primary_hue="indigo",
        secondary_hue="blue",
        neutral_hue="slate"
    ),
    footer_links=[
        {"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"}
    ]
)