GuglielmoTor commited on
Commit
88d3a6e
·
verified ·
1 Parent(s): bbf108c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -60,11 +60,11 @@ def guarded_fetch_analytics():
60
  None,
61
  None
62
  )
63
- count_md, plot, growth_plot = fetch_and_render_analytics(
64
  token_received["client_id"],
65
  token_received["token"]
66
  )
67
- return count_md, plot, growth_plot
68
 
69
 
70
  def run_mentions_and_load():
@@ -124,11 +124,14 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
124
  with gr.Row(): # Use Row to align the two plots side-by-side
125
  follower_plot = gr.Plot(visible=False)
126
  growth_rate_plot = gr.Plot(visible=False)
 
 
 
127
 
128
  fetch_analytics_btn.click(
129
  fn=guarded_fetch_analytics,
130
  inputs=[],
131
- outputs=[follower_count, follower_plot, growth_rate_plot]
132
  )
133
 
134
 
 
60
  None,
61
  None
62
  )
63
+ count_md, plot, growth_plot, avg_post_eng_rate = fetch_and_render_analytics(
64
  token_received["client_id"],
65
  token_received["token"]
66
  )
67
+ return count_md, plot, growth_plot, avg_post_eng_rate
68
 
69
 
70
  def run_mentions_and_load():
 
124
  with gr.Row(): # Use Row to align the two plots side-by-side
125
  follower_plot = gr.Plot(visible=False)
126
  growth_rate_plot = gr.Plot(visible=False)
127
+
128
+ with gr.Row():
129
+ post_eng_rate_plot = gr.Plot(visible=False)
130
 
131
  fetch_analytics_btn.click(
132
  fn=guarded_fetch_analytics,
133
  inputs=[],
134
+ outputs=[follower_count, follower_plot, growth_rate_plot, post_eng_rate_plot]
135
  )
136
 
137