Antigravity AI commited on
Commit
7175a52
·
1 Parent(s): 37795e8

KAAL: fix iframe with sandbox

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -1,15 +1,21 @@
1
  import gradio as gr
 
2
 
3
  AMD_UI = "https://attendee-unengaged-explain.ngrok-free.dev"
4
 
5
  with gr.Blocks(title="KAAL Foresight") as demo:
6
  gr.HTML(f"""
7
- <div style="position:fixed;top:0;left:0;width:100%;height:100vh;margin:0;padding:0;">
8
- <iframe src="{AMD_UI}" width="100%" height="100vh"
9
- frameborder="0" scrolling="yes"
10
- style="border:none;width:100%;height:100vh;">
 
 
 
 
 
11
  </iframe>
12
  </div>
13
  """)
14
 
15
- demo.launch()
 
1
  import gradio as gr
2
+ import requests
3
 
4
  AMD_UI = "https://attendee-unengaged-explain.ngrok-free.dev"
5
 
6
  with gr.Blocks(title="KAAL Foresight") as demo:
7
  gr.HTML(f"""
8
+ <div style="position:fixed;top:0;left:0;width:100%;height:100vh;margin:0;padding:0;background:#050505;">
9
+ <iframe
10
+ src="{AMD_UI}"
11
+ width="100%"
12
+ height="100%"
13
+ frameborder="0"
14
+ scrolling="yes"
15
+ style="border:none;width:100%;height:100vh;"
16
+ sandbox="allow-same-origin allow-scripts allow-forms allow-popups">
17
  </iframe>
18
  </div>
19
  """)
20
 
21
+ demo.launch(server_name="0.0.0.0", server_port=7860)