radames's picture
Update README.md
fdebd29 unverified
|
raw
history blame
No virus
1.94 kB
metadata
title: NYTimes Homepage Sentiment Analysis
emoji: 📰
colorFrom: red
colorTo: green
sdk: gradio
app_file: main.py
pinned: false

The New York Times Sentiment Analysis

This project is an experiment running sentiment analysis on the current New York Times 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 , served by a Flask application and using transformers pipeline for the sentiment analysis.

Notes

Install Node with NVM

This Node script install node LTS and create symbolic links to /home/user/.local/bin/ as it seems like we don't have permission to update $PATH env

main.py

Because the Spaces run a python application, see app_file on docs. main.py is just a simple python subprocess to run make build-all See Makefile

SvelteKit Node Adapter?

SvelteKit eventually can be used as our primary web application with @sveltejs/adapter-node adaptor and Flask the API application with your ML project. However, there is an unsolved issue to enable dynamic basepath, which blocks the possibility to embedded deployment or using a relative path.