Spaces:
Running
Running
File size: 373 Bytes
fd2b294 ee6aff9 fd2b294 ee6aff9 fd2b294 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
from gradio_iframe import iFrame
example = iFrame().example_inputs()
with gr.Blocks() as demo:
with gr.Row():
gr.Markdown("## Blank iFrame and iFrame with another iFrame inside")
with gr.Row():
iFrame(label="Blank"), # blank component
iFrame(value=example, label="Populated"), # populated component
demo.launch()
|