Spaces:
Running
Running
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() |