Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
css = """
|
4 |
+
footer {
|
5 |
+
visibility: hidden;
|
6 |
+
}
|
7 |
+
"""
|
8 |
+
|
9 |
+
def create_home_screen():
|
10 |
+
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as home:
|
11 |
+
gr.Image("banner.png", show_label=False)
|
12 |
+
|
13 |
+
with gr.Box():
|
14 |
+
gr.Markdown("# Latest News")
|
15 |
+
|
16 |
+
# News Item 1
|
17 |
+
with gr.Row():
|
18 |
+
with gr.Column(scale=1):
|
19 |
+
gr.Image("news1.jpg", show_label=False)
|
20 |
+
with gr.Column(scale=2):
|
21 |
+
gr.Markdown("""
|
22 |
+
## AI Breakthrough in Medical Research
|
23 |
+
Scientists have developed a new AI model that can predict
|
24 |
+
potential drug candidates for various diseases with unprecedented
|
25 |
+
accuracy. This breakthrough could significantly speed up the
|
26 |
+
drug discovery process and bring new treatments to patients faster.
|
27 |
+
""")
|
28 |
+
|
29 |
+
# News Item 2
|
30 |
+
with gr.Row():
|
31 |
+
with gr.Column(scale=1):
|
32 |
+
gr.Image("news2.jpg", show_label=False)
|
33 |
+
with gr.Column(scale=2):
|
34 |
+
gr.Markdown("""
|
35 |
+
## Quantum Computing Milestone Achieved
|
36 |
+
Researchers have successfully demonstrated quantum supremacy
|
37 |
+
in a practical application for the first time. This achievement
|
38 |
+
marks a significant step forward in the field of quantum computing
|
39 |
+
and its potential real-world applications.
|
40 |
+
""")
|
41 |
+
|
42 |
+
# News Item 3
|
43 |
+
with gr.Row():
|
44 |
+
with gr.Column(scale=1):
|
45 |
+
gr.Image("news3.jpg", show_label=False)
|
46 |
+
with gr.Column(scale=2):
|
47 |
+
gr.Markdown("""
|
48 |
+
## New Renewable Energy Technology Shows Promise
|
49 |
+
A team of engineers has developed a highly efficient solar panel
|
50 |
+
that can generate electricity even at night. This innovation could
|
51 |
+
revolutionize the renewable energy sector and accelerate the
|
52 |
+
transition to clean energy sources.
|
53 |
+
""")
|
54 |
+
|
55 |
+
return home
|
56 |
+
|
57 |
+
if __name__ == "__main__":
|
58 |
+
home = create_home_screen()
|
59 |
+
home.launch()
|