Skip to content

A simple Python web application that leverages Hugging Face Transformers to perform real-time sentiment analysis on text inputs. Built with Gradio.

Notifications You must be signed in to change notification settings

mishrasur7/vibe-code-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎭 The Vibe Check: AI Sentiment Analysis

The Vibe Check is a Python-based web application that utilizes artificial intelligence to analyze the emotional tone of text. By leveraging Hugging Face's transformers library, the app can instantly detect if a user's input is Positive or Negative with a specific confidence score.

Python Hugging Face Gradio

πŸ“‚ Project Structure

vibe-check/
β”œβ”€β”€ app.py                # The main application logic
β”œβ”€β”€ requirements.txt      # List of dependencies
β”œβ”€β”€ .gitignore            # Files to exclude (e.g., venv)
└── README.md             # Project documentation

πŸ› οΈ Prerequisites

Before you begin, ensure you have the following installed on your machine:

  • Python (Version 3.8 or higher)
  • Git (Optional, for cloning)

πŸš€ Installation & Setup

Follow these steps to get the project running locally.

1. Clone the Repository

If you have Git installed, clone the repo. If not, download the ZIP file and extract it.

git clone https://github.com/yourusername/vibe-check.git
cd vibe-check

2. Create a Virtual Environment

It is recommended to use a virtual environment to keep your dependencies organized.

On Windows:

python -m venv venv
venv\Scripts\activate

On macOS / Linux:

python3 -m venv venv
source venv/bin/activate

(You will know it worked if you see (venv) appear at the start of your terminal line).

3. Install Dependencies

Install the required libraries (Transformers, PyTorch, Gradio) using the requirements file:

pip install -r requirements.txt

⚑ Usage

1. Start the App

Run the following command in your terminal:

python3 app.py

2. Access the Interface

After a few seconds, the terminal will display a local URL. Open your web browser and go to:

http://127.0.0.1:7860

3. Test it out!

Type any sentence into the text box (e.g., "I love learning about AI!") and click Submit.

About

A simple Python web application that leverages Hugging Face Transformers to perform real-time sentiment analysis on text inputs. Built with Gradio.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages