Create embed.app
Browse files
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()
|