Update app.py
Browse files
app.py
CHANGED
|
@@ -20,18 +20,24 @@ load_js=f"""
|
|
| 20 |
"""
|
| 21 |
# src="https://omnibus-game-test-static.static.hf.space?sky={sky}&platform={platform}&star={star}&bomb={bomb}&dude={dude}"
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
<div id="demo">
|
| 27 |
<iframe
|
| 28 |
id="myIframe"
|
|
|
|
| 29 |
frameborder="0"
|
| 30 |
width="100%"
|
| 31 |
height="100%"
|
| 32 |
></iframe>
|
| 33 |
-
</div>
|
| 34 |
-
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
btn=gr.Button()
|
| 36 |
-
btn.click(None,None,None
|
| 37 |
app.launch()
|
|
|
|
| 20 |
"""
|
| 21 |
# src="https://omnibus-game-test-static.static.hf.space?sky={sky}&platform={platform}&star={star}&bomb={bomb}&dude={dude}"
|
| 22 |
|
| 23 |
+
|
| 24 |
+
html_mod=f"""
|
|
|
|
| 25 |
<div id="demo">
|
| 26 |
<iframe
|
| 27 |
id="myIframe"
|
| 28 |
+
src="https://omnibus-game-test-static.static.hf.space?sky={sky}&platform={platform}&star={star}&bomb={bomb}&dude={dude}"
|
| 29 |
frameborder="0"
|
| 30 |
width="100%"
|
| 31 |
height="100%"
|
| 32 |
></iframe>
|
| 33 |
+
</div>"""
|
| 34 |
+
with open("tmp.html","w") as f:
|
| 35 |
+
f.write(html_mod)
|
| 36 |
+
f.close
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
with gr.Blocks() as app:
|
| 40 |
+
gr.HTML("tmp.html")
|
| 41 |
btn=gr.Button()
|
| 42 |
+
btn.click(None,None,None)
|
| 43 |
app.launch()
|