File size: 327 Bytes
60cbd15
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def embed_html(html_frame):
    return gr.outputs.HTML(html_frame)

iface = gr.Interface(
    fn=embed_html,
    inputs=gr.inputs.Textbox(label="Enter HTML frame here"),
    outputs="html",
    title="HTML Frame Embedder",
    description="Input an HTML frame and see it embedded below."
)

iface.launch()