fix(dataset): silent erros if dataset did not exist

This commit is contained in:
2026-03-03 13:13:40 +00:00
parent 075e1fba85
commit f93e45b827
2 changed files with 14 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ import pandas as pd
from server.analysis.nlp import NLP
class DatasetEnrichment:
def __init__(self, df, topics):
def __init__(self, df: pd.DataFrame, topics: dict):
self.df = self._explode_comments(df)
self.topics = topics
self.nlp = NLP(self.df, "title", "content", self.topics)