File size: 1,172 Bytes
71c165d
1b06101
4736ebf
71c165d
 
1b06101
 
71c165d
f3481ab
71c165d
 
fdebd29
 
 
 
a6fd849
fdebd29
a6fd849
fdebd29
a6fd849
 
 
 
 
 
fdebd29
a6fd849
fdebd29
a6fd849
 
 
 
 
fdebd29
a6fd849
fdebd29
a6fd849
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: NYTimes Homepage Sentiment Analysis
emoji: 📰
colorFrom: red
colorTo: green
sdk: docker
app_port: 7860
pinned: false
short_description: News Sentiment Analysis Toggle Between Good and Bad
---

# The New York Times Sentiment Analysis

This project is an experiment running sentiment analysis on the current [New York Times](https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml) homepage headlines RSS. It also provides a sorting button to toggle between good and bad news first😛 . It's built with a [custom SvelveKit front-end](https://huggingface.co/spaces/radames/NYTimes-homepage-rearranged/tree/main/client) , served by a [Flask application](https://huggingface.co/spaces/radames/NYTimes-homepage-rearranged/blob/main/app.py) and using [transformers pipeline for the sentiment analysis.](https://huggingface.co/siebert/sentiment-roberta-large-english)

### Running

#### Server

```bash
python -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python app.py
```

#### Client

```bash
cd frontend
npm install
npm run dev
```

go http://localhost:5173/

or

```bash
make build-all
make run
```

go http://127.0.0.1:7860