embed / embed.js
om-app's picture
Rename embed.py to embed.js
ce0d8d9
raw
history blame
327 Bytes
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()