Weyaxi commited on
Commit
a857cac
·
verified ·
1 Parent(s): 847efe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -5,6 +5,8 @@ import pandas as pd
5
  import time
6
  import threading
7
  from huggingface_hub import HfApi
 
 
8
  api = HfApi()
9
 
10
  HF_TOKEN = os.getenv('HF_TOKEN')
@@ -97,7 +99,10 @@ with gr.Blocks() as demo:
97
  with gr.TabItem("📈 Graphic", id=2):
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
 
 
5
  import time
6
  import threading
7
  from huggingface_hub import HfApi
8
+ from plot_graph import plot_follower_comparison
9
+
10
  api = HfApi()
11
 
12
  HF_TOKEN = os.getenv('HF_TOKEN')
 
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=search_comparaiosn, inputs=search_bar, outputs=gr_followers)
108