Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -3,6 +3,11 @@ import gradio as gr
|
|
| 3 |
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" 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>"""
|
|
|
|
| 3 |
demo = gr.Blocks()
|
| 4 |
|
| 5 |
def fun1():
|
| 6 |
+
tweet_link = "https://t.co/yZlSG6mDW6" #json_response['data'][0]['text'].split()[-1]
|
| 7 |
+
tweet_text = "Exploring through Random Curiosity with General Value Functions abs: https://t.co/rnbmQcHDUu" #' '.join(json_response['data'][0]['text'].split()[:-1])
|
| 8 |
+
tweet_createdat = "2022-11-21T03:33:22.000Z" #json_response['data'][0]['created_at']
|
| 9 |
+
print("tweetssss ====> "tweet_text, tweet_link, tweet_createdat)
|
| 10 |
+
|
| 11 |
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>'
|
| 12 |
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>"""
|
| 13 |
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>"""
|