import gradio as gr | |
def greet(): | |
# Inject iframe to load the page and fill 100% of the page | |
iframe_code = ''' | |
<iframe src="https://hackersrising.com" | |
style="width: 100%; height: 100vh; border: none;"></iframe> | |
''' | |
return iframe_code | |
with gr.Blocks() as demo: | |
# Automatically load the iframe without user input | |
gr.HTML(greet()) | |
demo.launch() | |