bnews2 / app.py
seawolf2357's picture
Update app.py
065f61e verified
raw
history blame
1.36 kB
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("# ์ „๋ฌธ ์‹œ์Šคํ…œ ๊ทธ๋ฃน")
gr.Markdown("## \n")
# News Item 1
with gr.Row():
with gr.Column(scale=1):
gr.Image("news2.jpg", show_label=False)
with gr.Column(scale=2):
gr.Markdown("""
## [ํ†ตํ•ฉ Medim ๋ธ”๋กœ๊ทธ ์‹œ์Šคํ…œ] http://hugpu.ai:7917 \n
## \n
## [AI ๊ฐœ์ธ๋น„์„œ: JinJAVIS] http://hugpu.ai:8000 \n
""")
gr.Markdown("## \n")
# 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("""
## [ ํ†ตํ•ฉ Auto-Multi ๋ธ”๋กœ๊ทธ ์‹œ์Šคํ…œ: Medium] http://hugpu.ai:7917 \n
## \n
## [ AI ๊ฐœ์ธ๋น„์„œ: JinJAVIS ] http://hugpu.ai:8000 \n
""")
gr.Markdown("## \n")
return home
if __name__ == "__main__":
home = create_home_screen()
home.launch()