Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radames/nytimes-homepage-rearranged-hf-spaces
https://github.com/radames/nytimes-homepage-rearranged-hf-spaces
sentiment-analysis svelte transformers
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/radames/nytimes-homepage-rearranged-hf-spaces
- Owner: radames
- Created: 2022-02-16T00:27:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T06:22:09.000Z (7 months ago)
- Last Synced: 2024-04-09T07:30:51.831Z (7 months ago)
- Topics: sentiment-analysis, svelte, transformers
- Language: Svelte
- Homepage: https://huggingface.co/spaces/radames/NYTimes-homepage-rearranged
- Size: 190 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
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