Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| def create_demo(): | |
| with gr.Blocks(fill_height=True) as demo: | |
| gr.HTML( | |
| value=""" | |
| <style> | |
| body, html, .gradio-container { height: 100vh !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; max-width: none !important; } | |
| footer { display: none !important; } | |
| .main { height: 100vh !important; } | |
| #iframe-container { | |
| position: fixed !important; | |
| top: 0 !important; | |
| left: 0 !important; | |
| width: 100vw !important; | |
| height: 100vh !important; | |
| z-index: 99999 !important; | |
| border: none !important; | |
| padding: 0 !important; | |
| margin: 0 !important; | |
| } | |
| iframe { width: 100%; height: 100%; border: none; } | |
| </style> | |
| <div id="iframe-container"> | |
| <iframe src="https://acuity.haawke.com" | |
| sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts" | |
| allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | |
| allowfullscreen> | |
| </iframe> | |
| </div> | |
| """, | |
| elem_id="iframe-wrapper" | |
| ) | |
| return demo | |
| if __name__ == "__main__": | |
| demo = create_demo() | |
| demo.launch() | |