backend / app.py
muellerzr's picture
muellerzr HF staff
Create app.py
28bd27e
raw
history blame
495 Bytes
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()