Test-iframe / app.py
Omnibus's picture
Update app.py
a137c8a
raw
history blame
390 Bytes
import gradio as gr
def test(inp):
out = f'''<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<iframe
src="{inp}
frameborder="0"
width="100%"
height="2000"
></iframe>
</body>
</html>'''
return out
with gr.Blocks() as app:
input = gr.Textbox()
btn = gr.Button()
output = gr.HTML("""""")
btn.click(test,input,output)
app.launch()