om-app commited on
Commit
709df48
·
1 Parent(s): 353ffff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
 
3
- embed_widget_code = """<iframe src="https://openspeedtest.com/Get-widget.php" frameborder="0" scrolling="no" width="380" height="220" allowtransparency></iframe>"""
 
4
 
5
- iface = gr.Interface(embed_widget_code, inputs=None, outputs="html", capture_session=False)
 
 
 
 
6
 
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ iframe = gr.outputs.HTML(
4
+ "<iframe src='https://openspeedtest.com/speedtest'></iframe>")
5
 
6
+ iface = gr.Interface(
7
+ fn=lambda x: x,
8
+ inputs=None,
9
+ outputs=iframe,
10
+ capture_session=False)
11
 
12
  iface.launch()