om-app commited on
Commit
60cbd15
·
1 Parent(s): 38e08fd

Create embed.app

Browse files
Files changed (1) hide show
  1. embed.app +14 -0
embed.app ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def embed_html(html_frame):
4
+ return gr.outputs.HTML(html_frame)
5
+
6
+ iface = gr.Interface(
7
+ fn=embed_html,
8
+ inputs=gr.inputs.Textbox(label="Enter HTML frame here"),
9
+ outputs="html",
10
+ title="HTML Frame Embedder",
11
+ description="Input an HTML frame and see it embedded below."
12
+ )
13
+
14
+ iface.launch()