File size: 854 Bytes
6634db1
 
500a5b0
4cb7e61
8f4468f
 
 
c84a6e6
6614cbc
 
2c1b6e7
6634db1
c84a6e6
7e2e851
6634db1
9ee7f8a
167765f
6634db1
6614cbc
 
 
500a5b0
6634db1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"""
    <div id="demo" style="height:600px">
        <iframe
        id="myIframe"
        src="https://omnibus-game-test-static.static.hf.space/index.html?sky={sky}&platform={platform}&star={star}&bomb={bomb}&dude={dude}"        
    	frameborder="0"
    	width="100%"
        height="100%"
        ></iframe>
    </div>"""

with gr.Blocks() as app:
    gr.HTML(html_mod)
app.launch()