Spaces:
Runtime error
Runtime error
upd
Browse files
app.py
CHANGED
|
@@ -4,8 +4,8 @@ demo = gr.Blocks()
|
|
| 4 |
|
| 5 |
def fun1():
|
| 6 |
embed_url1 = '<a class="twitter-timeline" data-width="400" data-height="600" href="https://twitter.com/_akhaliq?ref_src=twsrc%5Etfw" target="_blank">Tweets by _akhaliq</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>'
|
| 7 |
-
embed_url2 = """<a class="twitter-timeline" href="https://twitter.com/_akhaliq?ref_src=twsrc%5Etfw">Tweets by _akhaliq</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>"""
|
| 8 |
-
embed_url3 = """<
|
| 9 |
embed_url4 = """<a class="twitter-timeline"
|
| 10 |
href="https://twitter.com/_akhaliq">
|
| 11 |
Tweets by @_akhaliq
|
|
@@ -13,7 +13,7 @@ def fun1():
|
|
| 13 |
#<a class="twitter-timeline" href="https://twitter.com/marycamacho" data-widget-id="275430111547887616">Tweets by @marycamacho</a>
|
| 14 |
#<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
| 15 |
|
| 16 |
-
return embed_url1 ,
|
| 17 |
|
| 18 |
with demo:
|
| 19 |
with gr.Row():
|
|
|
|
| 4 |
|
| 5 |
def fun1():
|
| 6 |
embed_url1 = '<a class="twitter-timeline" data-width="400" data-height="600" href="https://twitter.com/_akhaliq?ref_src=twsrc%5Etfw" target="_blank">Tweets by _akhaliq</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>'
|
| 7 |
+
embed_url2 = """<a class="twitter-timeline" href="https://twitter.com/_akhaliq?ref_src=twsrc%5Etfw" target="_akhaliq">Tweets by _akhaliq</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>"""
|
| 8 |
+
embed_url3 = """<iframe class="twitter-timeline" href="https://twitter.com/_akhaliq?ref_src=twsrc%5Etfw">Tweets by _akhaliq</iframe> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>"""
|
| 9 |
embed_url4 = """<a class="twitter-timeline"
|
| 10 |
href="https://twitter.com/_akhaliq">
|
| 11 |
Tweets by @_akhaliq
|
|
|
|
| 13 |
#<a class="twitter-timeline" href="https://twitter.com/marycamacho" data-widget-id="275430111547887616">Tweets by @marycamacho</a>
|
| 14 |
#<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
| 15 |
|
| 16 |
+
return embed_url1 , embed_url2, embed_url3
|
| 17 |
|
| 18 |
with demo:
|
| 19 |
with gr.Row():
|