|
import gradio as gr |
|
|
|
|
|
|
|
html_content = """ |
|
<style> |
|
body, html { |
|
margin: 0; |
|
padding: 0; |
|
height: 100%; |
|
overflow: hidden; |
|
background-color: #FFF; /* Set a background color in case the iframe is slow to load */ |
|
} |
|
iframe { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
border: none; |
|
} |
|
</style> |
|
<iframe src="https://designer.tesslate.com"></iframe> |
|
""" |
|
|
|
|
|
|
|
with gr.Blocks(css=".gradio-container {padding: 0px !important;}") as demo: |
|
|
|
|
|
|
|
gr.HTML(value=html_content, elem_id="full-page-iframe") |
|
|
|
|
|
demo.launch() |