Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -60,11 +60,11 @@ def guarded_fetch_analytics():
|
|
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():
|
@@ -127,11 +127,14 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
|
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 |
|
|
|
60 |
None,
|
61 |
None
|
62 |
)
|
63 |
+
count_md, plot, growth_plot, avg_post_eng_rate, interaction_metrics = 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, interaction_metrics
|
68 |
|
69 |
|
70 |
def run_mentions_and_load():
|
|
|
127 |
|
128 |
with gr.Row():
|
129 |
post_eng_rate_plot = gr.Plot(visible=False)
|
130 |
+
|
131 |
+
with gr.Row():
|
132 |
+
interaction_data = gr.Plot(visible=False)
|
133 |
|
134 |
fetch_analytics_btn.click(
|
135 |
fn=guarded_fetch_analytics,
|
136 |
inputs=[],
|
137 |
+
outputs=[follower_count, follower_plot, growth_rate_plot, post_eng_rate_plot, interaction_data]
|
138 |
)
|
139 |
|
140 |
|