ysharma HF Staff commited on
Commit
87df47d
·
1 Parent(s): 8a1fef7
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ demo = gr.Blocks()
4
+
5
+ def fun1():
6
+ embed_url = """<a class="twitter-timeline" data-width="400" data-height="600" 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>"""
7
+ return embed_url
8
+
9
+ with demo:
10
+ with gr.Row():
11
+ b1 = gr.Button("Twitter Feed")
12
+ twitter_pane = gr.HTML()
13
+ b1.click(fn=fun1, outputs=twitter_pane)
14
+
15
+ demo.launch(debug=True, show_error=True)