gradio_html_1 / app.py
tony1966's picture
initial commit
8b8e713 verified
raw
history blame contribute delete
306 Bytes
import gradio as gr
def handler(in1):
return in1
in1=gr.Textbox(label='請輸入 HTML 碼')
out1=gr.HTML(label="HTML 效果", container=False)
iface=gr.Interface(
fn=handler,
inputs=[in1],
outputs=[out1],
title='HTML 元件測試',
flagging_mode='never',
)
iface.launch()