CoolFace
Apppublic

pranav-singh-developer-1/movie-sentiment-analysis

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐ŸŽฌ Movie Review Sentiment Analyzer

Welcome to the Movie Review Sentiment Analyzer! This app uses a TensorFlow-based neural network to classify IMDb-style movie reviews as Positive ๐Ÿ˜Š or Negative ๐Ÿ˜ž.

๐Ÿง  Powered By

  • โ€”TensorFlow (2.15)
  • โ€”Streamlit for UI
  • โ€”Matplotlib for visual feedback
  • โ€”TensorFlow Datasets for training with imdb_reviews

๐Ÿš€ Features

  • โ€”๐Ÿ“ฅ Analyze individual or batch reviews
  • โ€”๐Ÿ“Š Visual confidence chart
  • โ€”๐Ÿง  Automatically trains the model if not found
  • โ€”๐Ÿ’พ Loads from saved_model/ if already trained

๐Ÿ›  How it works

  1. 1.If no trained model is found, main.py trains one using the IMDb dataset.
  2. 2.Once trained, the model is saved in saved_model/.
  3. 3.app.py provides an interactive Streamlit interface for predictions.

๐Ÿงพ File Structure

. โ”œโ”€โ”€ app.py # Streamlit UI app โ”œโ”€โ”€ main.py # Training script โ”œโ”€โ”€ saved_model/ # TensorFlow model directory (auto-created) โ”œโ”€โ”€ requirements.txt # All dependencies

yaml Copy Edit

โœจ Try it out

Type your own movie review, or upload a .txt file with one review per line!


Made with โค๏ธ by Pranav Singh