File size: 564 Bytes
c4f4e53 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import gradio as gr
def display_html():
html_content = """
<h1>Hello, Gradio!</h1>
<p>This is an example of displaying HTML content using Gradio.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
"""
return html_content
# Gradioのインターフェースを作成
gradio_interface = gr.Interface(
fn=display_html, # HTMLコンテンツを返す関数
inputs=[], # 入力なし
outputs=gr.HTML() # HTMLコンテンツを表示
)
# インターフェースを起動
#iface.launch()
|