Finish off the links between frontend and backend #10

Merged
dylan merged 24 commits from feat/add-frontend-pages into main 2026-03-18 20:30:19 +00:00
Showing only changes of commit 8a0f6e71e8 - Show all commits

View File

@@ -127,13 +127,9 @@ class StatGen:
filtered_df = self._prepare_filtered_df(df, filters) filtered_df = self._prepare_filtered_df(df, filters)
return { return {
"identity_markers": self.cultural_analysis.get_identity_markers( "identity_markers": self.cultural_analysis.get_identity_markers(filtered_df),
filtered_df
),
"stance_markers": self.cultural_analysis.get_stance_markers(filtered_df), "stance_markers": self.cultural_analysis.get_stance_markers(filtered_df),
"entity_salience": self.cultural_analysis.get_avg_emotions_per_entity( "avg_emotion_per_entity": self.cultural_analysis.get_avg_emotions_per_entity(filtered_df)
filtered_df
),
} }
def summary(self, df: pd.DataFrame, filters: dict | None = None) -> dict: def summary(self, df: pd.DataFrame, filters: dict | None = None) -> dict: