Spaces:
Running
Running
Upload 17 files
Browse files- data/news_sentiment.json +0 -0
- data/sentiment_trends.json +12 -0
- fallback.mp4.mp4 +2 -2
- public/app.js +8 -5
- public/index.html +1 -1
- public/upi-qr.jpeg +2 -2
data/news_sentiment.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/sentiment_trends.json
CHANGED
|
@@ -46,5 +46,17 @@
|
|
| 46 |
{
|
| 47 |
"time": "2026-04-04T22:20:01.546Z",
|
| 48 |
"score": 0.5888480392156863
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
}
|
| 50 |
]
|
|
|
|
| 46 |
{
|
| 47 |
"time": "2026-04-04T22:20:01.546Z",
|
| 48 |
"score": 0.5888480392156863
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"time": "2026-04-11T20:09:31.522Z",
|
| 52 |
+
"score": 0.8033737480231945
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"time": "2026-04-11T20:10:01.066Z",
|
| 56 |
+
"score": 0.8010554089709763
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"time": "2026-04-11T20:15:01.370Z",
|
| 60 |
+
"score": 0.7939778129952456
|
| 61 |
}
|
| 62 |
]
|
fallback.mp4.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dff1806c2e8c7b1ea0d0c4d22e2055810f4413ff3529ed4e6b47ec6eced8a223
|
| 3 |
+
size 132
|
public/app.js
CHANGED
|
@@ -57,11 +57,14 @@ function renderFeed() {
|
|
| 57 |
if (currentFilter !== 'all') filtered = filtered.filter(n => n.sentiment.label === currentFilter);
|
| 58 |
if (currentSource !== 'all') filtered = filtered.filter(n => n.source === currentSource);
|
| 59 |
if (searchQuery) {
|
| 60 |
-
const
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
// Filter out headlines with less than 5 words
|
|
|
|
| 57 |
if (currentFilter !== 'all') filtered = filtered.filter(n => n.sentiment.label === currentFilter);
|
| 58 |
if (currentSource !== 'all') filtered = filtered.filter(n => n.source === currentSource);
|
| 59 |
if (searchQuery) {
|
| 60 |
+
const keywords = searchQuery.toLowerCase().split(',').map(k => k.trim()).filter(k => k !== '');
|
| 61 |
+
if (keywords.length > 0) {
|
| 62 |
+
filtered = filtered.filter(n => {
|
| 63 |
+
const title = n.title.toLowerCase();
|
| 64 |
+
const source = n.source.toLowerCase();
|
| 65 |
+
return keywords.some(k => title.includes(k) || source.includes(k));
|
| 66 |
+
});
|
| 67 |
+
}
|
| 68 |
}
|
| 69 |
|
| 70 |
// Filter out headlines with less than 5 words
|
public/index.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
| 43 |
<div class="header-main">
|
| 44 |
<h2 class="support-link" onclick="openSupportModal()">❤ Support</h2>
|
| 45 |
<div class="search-container">
|
| 46 |
-
<input type="text" id="news-search" placeholder="Search
|
| 47 |
</div>
|
| 48 |
<div class="filter-controls">
|
| 49 |
<button class="filter-btn active" data-sentiment="all"
|
|
|
|
| 43 |
<div class="header-main">
|
| 44 |
<h2 class="support-link" onclick="openSupportModal()">❤ Support</h2>
|
| 45 |
<div class="search-container">
|
| 46 |
+
<input type="text" id="news-search" placeholder="Search (comma separated)..." oninput="handleSearch(this.value)">
|
| 47 |
</div>
|
| 48 |
<div class="filter-controls">
|
| 49 |
<button class="filter-btn active" data-sentiment="all"
|
public/upi-qr.jpeg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|