liuyiyang commited on
Commit
44c61b8
·
verified ·
1 Parent(s): c955638

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -1,8 +1,17 @@
1
  import gradio as gr
2
 
3
  with gr.Blocks() as demo:
4
- gr.components.IFrame("http://47.95.6.204:51000/",
5
- width="100%",
6
- height=500)
 
 
 
 
 
 
 
 
 
7
 
8
  demo.launch()
 
1
  import gradio as gr
2
 
3
  with gr.Blocks() as demo:
4
+ gr.HTML("""
5
+ <div style="width:100vw; height:100vh; overflow:hidden; margin:-20px; padding:0;">
6
+ <iframe
7
+ src="http://47.95.6.204:51000/"
8
+ sandbox="allow-scripts allow-same-origin allow-fullscreen"
9
+ allow="fullscreen"
10
+ width="100%"
11
+ height="100%"
12
+ style="border:none;"
13
+ ></iframe>
14
+ </div>
15
+ """)
16
 
17
  demo.launch()