Weyaxi commited on
Commit
77227d2
·
verified ·
1 Parent(s): effc28e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -88,13 +88,18 @@ title = """
88
  with gr.Blocks() as demo:
89
  gr.Markdown("""<h1 align="center" id="space-title">🌟 Follower Leaderboard 🌟</h1>""")
90
  gr.Markdown(desc)
91
- with gr.Column(min_width=320):
92
- search_bar = gr.Textbox(placeholder="🔍 Search for a author", show_label=False)
93
-
94
- gr_followers = gr.Dataframe(df, interactive=False, datatype=["number", 'markdown', 'number'])
95
-
 
 
 
 
 
96
  search_bar.submit(fn=search, inputs=search_bar, outputs=gr_followers)
97
-
98
 
99
  threading.Thread(target=restart_space).start()
100
  demo.launch()
 
88
  with gr.Blocks() as demo:
89
  gr.Markdown("""<h1 align="center" id="space-title">🌟 Follower Leaderboard 🌟</h1>""")
90
  gr.Markdown(desc)
91
+ with gr.TabItem("📊 Dataframe", id=1):
92
+ with gr.Column(min_width=320):
93
+ search_bar = gr.Textbox(placeholder="🔍 Search for a author", show_label=False)
94
+
95
+ gr_followers = gr.Dataframe(df, interactive=False, datatype=["number", 'markdown', 'number'])
96
+
97
+ with gr.TabItem("📊 Dataframe", id=1):
98
+ with gr.Column(min_width=320):
99
+ search_bar_graph = gr.Textbox(placeholder="🔍 Search for a author or authors seperated by comma", show_label=False)
100
+
101
  search_bar.submit(fn=search, inputs=search_bar, outputs=gr_followers)
102
+ # search_bar_graph.submit(fn=search_comparaiosn, inputs=search_bar, outputs=gr_followers)
103
 
104
  threading.Thread(target=restart_space).start()
105
  demo.launch()