Update app.py
Browse files
app.py
CHANGED
@@ -87,22 +87,22 @@ title = """
|
|
87 |
</div>
|
88 |
"""
|
89 |
|
90 |
-
with gr.Blocks() as demo:
|
91 |
gr.Markdown("""<h1 align="center" id="space-title">🌟 Follower Leaderboard 🌟</h1>""")
|
92 |
gr.Markdown(desc)
|
|
|
93 |
with gr.TabItem("📊 Dataframe", id=1):
|
94 |
with gr.Column(min_width=320):
|
95 |
-
search_bar = gr.Textbox(placeholder="🔍 Search for
|
96 |
|
97 |
gr_followers = gr.Dataframe(df, interactive=False, datatype=["number", 'markdown', 'number'])
|
98 |
|
99 |
with gr.TabItem("📈 Graphic", id=2):
|
100 |
with gr.Column(min_width=320):
|
101 |
-
search_bar_graph = gr.Textbox(placeholder="🔍 Search for
|
102 |
|
103 |
-
gr_plot = gr.Plot(
|
104 |
|
105 |
-
|
106 |
search_bar.submit(fn=search, inputs=search_bar, outputs=gr_followers)
|
107 |
search_bar_graph.submit(fn=plot_follower_comparison, inputs=search_bar_graph, outputs=gr_plot)
|
108 |
|
|
|
87 |
</div>
|
88 |
"""
|
89 |
|
90 |
+
with gr.Blocks() as demo:
|
91 |
gr.Markdown("""<h1 align="center" id="space-title">🌟 Follower Leaderboard 🌟</h1>""")
|
92 |
gr.Markdown(desc)
|
93 |
+
|
94 |
with gr.TabItem("📊 Dataframe", id=1):
|
95 |
with gr.Column(min_width=320):
|
96 |
+
search_bar = gr.Textbox(placeholder="🔍 Search for an author", show_label=False)
|
97 |
|
98 |
gr_followers = gr.Dataframe(df, interactive=False, datatype=["number", 'markdown', 'number'])
|
99 |
|
100 |
with gr.TabItem("📈 Graphic", id=2):
|
101 |
with gr.Column(min_width=320):
|
102 |
+
search_bar_graph = gr.Textbox(placeholder="🔍 Search for an author or authors separated by comma", show_label=False)
|
103 |
|
104 |
+
gr_plot = gr.Plot()
|
105 |
|
|
|
106 |
search_bar.submit(fn=search, inputs=search_bar, outputs=gr_followers)
|
107 |
search_bar_graph.submit(fn=plot_follower_comparison, inputs=search_bar_graph, outputs=gr_plot)
|
108 |
|