import gradio as gr sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png" platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png' star = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/star.png' bomb = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/bomb.png' dude = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/dude.png' html_mod=f"""
""" with open("tmp.html","w") as f: f.write(html_mod) f.close with open("tmp.html","r") as f: out = f.read() print(out) with gr.Blocks() as app: gr.HTML(html_mod) btn=gr.Button() btn.click(None,None,None) app.launch()