om-app commited on
Commit
6664340
·
1 Parent(s): 102a571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -18
app.py CHANGED
@@ -1,21 +1,6 @@
1
  import gradio as gr
2
 
3
- import gradio as gr
4
-
5
- def embed_widget_code():
6
- return gr.outputs.HTML('''
7
- <!--OST Widget code start-->
8
- <div style="text-align:right;">
9
- <div style="min-height:360px;">
10
- <div style="width:100%;height:0;padding-bottom:50%;position:relative;">
11
- <iframe style="border:none;position:absolute;top:0;left:0;width:100%;height:100%;min-height:360px;border:none;overflow:hidden !important;" src="//openspeedtest.com/speedtest"></iframe>
12
- </div>
13
- </div>
14
- Provided by <a href="https://openspeedtest.com">OpenSpeedtest.com</a>
15
- </div>
16
- <!-- OST Widget code end -->
17
- ''')
18
-
19
- iface = gr.Interface(embed_widget_code, inputs={}, outputs="html", capture_session=False)
20
- iface.launch()
21
 
 
 
 
1
  import gradio as gr
2
 
3
+ embed_widget_code = '<iframe src="https://openspeedtest.com/Get-widget.php" frameborder="0" width="100%" height="600"></iframe>'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ iface = gr.Interface(embed_widget_code, inputs='', outputs="html", capture_session=False)
6
+ iface.launch()