Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def embed_widget_code():
|
| 4 |
-
return
|
| 5 |
-
<!--OST Widget code start-->
|
| 6 |
-
<div style="text-align:right;">
|
| 7 |
-
<div style="min-height:360px;">
|
| 8 |
-
<div style="width:100%;height:0;padding-bottom:50%;position:relative;">
|
| 9 |
-
<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>
|
| 10 |
-
</div>
|
| 11 |
-
</div>
|
| 12 |
-
Provided by <a href="https://openspeedtest.com">OpenSpeedtest.com</a>
|
| 13 |
-
</div>
|
| 14 |
-
<!-- OST Widget code end -->
|
| 15 |
-
''')
|
| 16 |
|
| 17 |
-
iface = gr.Interface(
|
| 18 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def embed_widget_code():
|
| 4 |
+
return "<iframe src='//openspeedtest.com/speedtest' style='border:none;width:100%;height:350px;'></iframe>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
iface = gr.Interface(embed_widget_code, inputs={}, outputs="html")
|
| 7 |
iface.launch()
|