File size: 2,155 Bytes
d870b92
 
 
 
 
 
 
 
 
 
 
 
a11f1e0
d870b92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import gradio as gr

css = """
footer {
    visibility: hidden;
}
"""

def create_home_screen():
    with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as home:
        gr.Image("banner.png", show_label=False)
        
        gr.Markdown("# Latest News")
        
        # News Item 1
        with gr.Row():
            with gr.Column(scale=1):
                gr.Image("news1.jpg", show_label=False)
            with gr.Column(scale=2):
                gr.Markdown("""
                ## AI Breakthrough in Medical Research
                Scientists have developed a new AI model that can predict 
                potential drug candidates for various diseases with unprecedented 
                accuracy. This breakthrough could significantly speed up the 
                drug discovery process and bring new treatments to patients faster.
                """)
        
        # News Item 2
        with gr.Row():
            with gr.Column(scale=1):
                gr.Image("news2.jpg", show_label=False)
            with gr.Column(scale=2):
                gr.Markdown("""
                ## Quantum Computing Milestone Achieved
                Researchers have successfully demonstrated quantum supremacy 
                in a practical application for the first time. This achievement 
                marks a significant step forward in the field of quantum computing 
                and its potential real-world applications.
                """)
        
        # News Item 3
        with gr.Row():
            with gr.Column(scale=1):
                gr.Image("news3.jpg", show_label=False)
            with gr.Column(scale=2):
                gr.Markdown("""
                ## New Renewable Energy Technology Shows Promise
                A team of engineers has developed a highly efficient solar panel 
                that can generate electricity even at night. This innovation could 
                revolutionize the renewable energy sector and accelerate the 
                transition to clean energy sources.
                """)

    return home

if __name__ == "__main__":
    home = create_home_screen()
    home.launch()