CoolFace
Apppublic

Ykode/movie-sentiment-analysis

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

๐ŸŽฌ Movie Sentiment Analysis

A Flask + TensorFlow web application that predicts whether a movie review is Positive or Negative using a trained deep learning model.

๐Ÿš€ Features

  • โ€”Real-time sentiment prediction
  • โ€”Deep learning model built with TensorFlow/Keras
  • โ€”Text preprocessing using a trained tokenizer
  • โ€”Clean and responsive web interface
  • โ€”Prediction history support

๐Ÿ› ๏ธ Tech Stack

  • โ€”Python
  • โ€”Flask
  • โ€”TensorFlow / Keras
  • โ€”HTML, CSS, JavaScript
  • โ€”NumPy
  • โ€”Pickle

๐Ÿ“‚ Project Structure

text
.
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ model-002.keras
โ”œโ”€โ”€ tokenizer.pkl
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ templates/
โ”‚   โ””โ”€โ”€ index.html
โ””โ”€โ”€ static/
    โ””โ”€โ”€ style.css

๐Ÿง  Model Information

  • โ€”Input: Movie review text
  • โ€”Preprocessing: Tokenization and sequence padding
  • โ€”Output: Positive or Negative sentiment
  • โ€”Framework: TensorFlow / Keras

โš™๏ธ Run Locally

Clone the repository

bash
git clone https://github.com/tripathi-yash/movie-sentiment-analysis.git
cd movie-sentiment-analysis

Create a virtual environment

bash
python -m venv venv

Windows:

bash
venv\Scripts\activate

Linux/Mac:

bash
source venv/bin/activate

Install dependencies

bash
pip install -r requirements.txt

Start the application

bash
python app.py

Open:

text
http://localhost:5000

๐Ÿ“Š Example

Input

text
This movie was absolutely amazing. The acting and storyline were fantastic.

Output

text
Positive

๐Ÿ‘จโ€๐Ÿ’ป Author

Yash Tripathi

GitHub: https://github.com/tripathi-yash