File size: 495 Bytes
28bd27e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
def run():
print("Starting server....")
html = f"""
<iframe
src="http://{HOST}:{PORT}"
style="
position: fixed;
top: 0px;
bottom: 0px;
right: 0px;
width: 100%;
border: none;
margin: 0;
padding: 0;
overflow: hidden;
z-index: 999999;
height: 100%;
">
</iframe>
"""
def main():
demo = gr.Interface(
fn=run,
inputs=[],
outputs=gr.HTML(html),
)
demo.launch()
if __name__ == "__main__":
main() |