Skip to content

Commit

Permalink
Rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
mas-4 committed Jun 1, 2024
1 parent 9eee96b commit 7f42e40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/site/templates/nav.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav class="navbar">
<a class="nav-link" href="index.html">Today's Headlines</a> |
<a class="nav-link" href="topics.html">Media Narrative History</a> |
<a class="nav-link" href="agencies.html">Agencies</a>
<a class="nav-link" href="index.html">🗞️bignews.day</a> |
<a class="nav-link" href="topics.html">election topic history</a> |
<a class="nav-link" href="agencies.html">agencies</a>
</nav>
1 change: 0 additions & 1 deletion app/site/templates/topic.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends "page.html" %}

{% block content %}
<h1>{{ title }}</h1>
<img src="{{ topic.wordcloud }}" alt="{{ topic.title }} Wordcloud">
<img src="{{ topic.graph }}" alt="{{ topic.title }} Graph">
<br><br>
Expand Down
4 changes: 2 additions & 2 deletions app/site/wordcloudgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"life", "day", "thing", "something", "number", "system", "video", "months", "group",
"home", "effort", "product", "part", "cup", "Jan", "Feb", "Mar", "Apr", "Jun", "Jul", "Aug", "Sep", "Sept",
"Oct", "Nov", "Dec", "company", "companies", "business", "’", "'", '"', "go",
"new", "January", "February", "March", "April", "June", "July", "August", "September", "October", "November",
"new", "January", "February", "March", "April", "May," "June", "July", "August", "September", "October", "November",
"December", "time", "year", "week", "month", "years", "people", "life", "day", "thing", "something", "number",
"Subscribe", "EST", "READ", "News", "New", "York", "Images", "Politics", "newsletter", "ago", "live", "updates",
"exclusive",
Expand Down Expand Up @@ -62,7 +62,7 @@ def generate_wordcloud(headlines: list[str], path: str, pipeline: Optional[list[
mat = vec.fit_transform(text['cleaned'])
logger.debug("Creating dataframe from vector...")
df = pd.DataFrame(mat.todense().tolist(), columns=(vec.get_feature_names_out()))
wc: WordCloud = WordCloud(background_color="white", max_words=100, width=800, height=400)
wc: WordCloud = WordCloud(background_color="white", max_words=20, width=800, height=400)
logger.debug("Generating frequency dictionary...")
freq_dict = df.T.sum(axis=1)
logger.debug("Generating wordcloud for real this time...")
Expand Down
2 changes: 1 addition & 1 deletion app/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Config:
use_color = True
logging_level = logging.DEBUG
debug: bool = False
site_name = 'Maudlin'
site_name = 'BND'
strf = '%Y-%m-%d %H:%M:%S'
run_selenium = True
timeout = 60 # seconds for requests
Expand Down

0 comments on commit 7f42e40

Please sign in to comment.