|
import gradio as gr |
|
|
|
|
|
notices = [ |
|
"๊ณต์ง์ฌํญ 1: ์๋ก์ด ์
๋ฐ์ดํธ๊ฐ ์ถ์๋์์ต๋๋ค.", |
|
"๊ณต์ง์ฌํญ 2: ์์คํ
์ ๊ฒ ์๋ด.", |
|
"๊ณต์ง์ฌํญ 3: ์ฌ์ฉ์ ์ค๋ฌธ์กฐ์ฌ ์ฐธ์ฌ ์์ฒญ." |
|
] |
|
|
|
|
|
links = [ |
|
("์
๋ฐ์ดํธ ๋ด์ฉ ๋ณด๊ธฐ", "https://example.com/update"), |
|
("์์คํ
์ ๊ฒ ์ผ์ ", "https://example.com/maintenance"), |
|
("์ค๋ฌธ์กฐ์ฌ ์ฐธ์ฌ", "https://example.com/survey") |
|
] |
|
|
|
def show_notices(): |
|
|
|
html_output = "<ul>" |
|
for notice in notices: |
|
html_output += f"<li>{notice}</li>" |
|
html_output += "</ul>" |
|
|
|
|
|
html_output += "<table>" |
|
for title, url in links: |
|
html_output += f"<tr><td>{title}</td><td><a href='{url}' target='_blank'>{url}</a></td></tr>" |
|
html_output += "</table>" |
|
|
|
return html_output |
|
|
|
iface = gr.Interface( |
|
fn=show_notices, |
|
inputs=[], |
|
outputs=gr.HTML(), |
|
title="๊ณต์ง์ฌํญ ๋ฐ ์ ์ฉํ ๋งํฌ" |
|
) |
|
|
|
iface.launch() |
|
|