Spaces:
Sleeping
Sleeping
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, interaction_metrics, eb_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, eb_metrics
|
| 68 |
|
| 69 |
|
| 70 |
def run_mentions_and_load():
|
|
@@ -133,11 +133,15 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
|
| 133 |
|
| 134 |
with gr.Row():
|
| 135 |
eb_data = gr.Plot(visible=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
fetch_analytics_btn.click(
|
| 138 |
fn=guarded_fetch_analytics,
|
| 139 |
inputs=[],
|
| 140 |
-
outputs=[follower_count, follower_plot, growth_rate_plot, post_eng_rate_plot, interaction_data, eb_data]
|
| 141 |
)
|
| 142 |
|
| 143 |
|
|
|
|
| 60 |
None,
|
| 61 |
None
|
| 62 |
)
|
| 63 |
+
count_md, plot, growth_plot, avg_post_eng_rate, interaction_metrics, eb_metrics, mentions_vol_metrics, mentions_sentiment_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, eb_metrics, mentions_vol_metrics, mentions_sentiment_metrics
|
| 68 |
|
| 69 |
|
| 70 |
def run_mentions_and_load():
|
|
|
|
| 133 |
|
| 134 |
with gr.Row():
|
| 135 |
eb_data = gr.Plot(visible=False)
|
| 136 |
+
|
| 137 |
+
with gr.Row():
|
| 138 |
+
mentions_vol_data = gr.Plot(visible=False)
|
| 139 |
+
mentions_sentiment_data = gr.Plot(visible=False)
|
| 140 |
|
| 141 |
fetch_analytics_btn.click(
|
| 142 |
fn=guarded_fetch_analytics,
|
| 143 |
inputs=[],
|
| 144 |
+
outputs=[follower_count, follower_plot, growth_rate_plot, post_eng_rate_plot, interaction_data, eb_data, mentions_vol_data, mentions_sentiment_data]
|
| 145 |
)
|
| 146 |
|
| 147 |
|