Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ def update_analytics_plots_figures(token_state_value, date_filter_option, custom
|
|
96 |
# logging.info(f"Generated {plot_name} in {individual_plot_times[plot_name]:.2f}s")
|
97 |
|
98 |
# plot_figs.append(generate_engagement_type_plot(filtered_merged_posts_df))
|
99 |
-
|
100 |
-
|
101 |
# plot_figs.append(fig_mentions_activity_shared)
|
102 |
|
103 |
# plot_figs.append(fig_mention_sentiment_shared)
|
@@ -200,7 +200,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
|
200 |
with gr.Row():
|
201 |
date_filter_selector = gr.Radio(
|
202 |
["All Time", "Last 7 Days", "Last 30 Days", "Custom Range"],
|
203 |
-
label="Select Date Range", value="
|
204 |
)
|
205 |
with gr.Column(scale=2):
|
206 |
custom_start_date_picker = gr.DateTime(label="Start Date", visible=False, include_time=False, type="datetime") # type="date" might be better if time not used
|
|
|
96 |
# logging.info(f"Generated {plot_name} in {individual_plot_times[plot_name]:.2f}s")
|
97 |
|
98 |
# plot_figs.append(generate_engagement_type_plot(filtered_merged_posts_df))
|
99 |
+
fig_mentions_activity_shared = generate_mentions_activity_plot(filtered_mentions_df, date_column=date_column_mentions)
|
100 |
+
fig_mention_sentiment_shared = generate_mention_sentiment_plot(filtered_mentions_df)
|
101 |
# plot_figs.append(fig_mentions_activity_shared)
|
102 |
|
103 |
# plot_figs.append(fig_mention_sentiment_shared)
|
|
|
200 |
with gr.Row():
|
201 |
date_filter_selector = gr.Radio(
|
202 |
["All Time", "Last 7 Days", "Last 30 Days", "Custom Range"],
|
203 |
+
label="Select Date Range", value="All Time", scale=3
|
204 |
)
|
205 |
with gr.Column(scale=2):
|
206 |
custom_start_date_picker = gr.DateTime(label="Start Date", visible=False, include_time=False, type="datetime") # type="date" might be better if time not used
|