Weyaxi commited on
Commit
a1ddd60
·
verified ·
1 Parent(s): 353179a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 a author", show_label=False)
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 a author or authors seperated by comma", show_label=False)
102
 
103
- gr_plot = gr.Plot(plot_follower_comparison(["Weyaxi"]))
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