Spaces:
Sleeping
Sleeping
import gradio as gr | |
def greet(name): | |
# 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> | |
''' | |
# No need to use the `name` input anymore since it's auto-firing an iframe | |
return iframe_code | |
# Allow raw HTML rendering | |
demo = gr.Interface(fn=greet, inputs="text", outputs="html") | |
demo.launch() | |