Test-iframe / app.py
Omnibus's picture
Create app.py
a728a0a
raw
history blame
425 Bytes
import gradio as gr
def test(inp):
out = """<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<iframe
src="https://omnibus-detect-language.hf.space"
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()