https://github.com/ahmadjamil888/sentiment-analysis-model-ai
AI model for Sentiment analysis using pytorch and hugging face
https://github.com/ahmadjamil888/sentiment-analysis-model-ai
ai analysis api face flask higging pytorch rest sentiment
Last synced: about 2 months ago
JSON representation
AI model for Sentiment analysis using pytorch and hugging face
- Host: GitHub
- URL: https://github.com/ahmadjamil888/sentiment-analysis-model-ai
- Owner: Ahmadjamil888
- Created: 2025-06-24T11:48:04.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-24T12:02:03.000Z (12 months ago)
- Last Synced: 2025-10-24T17:27:52.769Z (8 months ago)
- Topics: ai, analysis, api, face, flask, higging, pytorch, rest, sentiment
- Language: Python
- Homepage: https://github.com/Ahmadjamil888/Sentiment-Analysis-Model-AI/tree/main
- Size: 87.9 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sentiment Analysis Model AI
This repository contains a complete full-stack application for performing sentiment analysis on user-provided text. The backend is powered by a pre-trained Hugging Face Transformer model, while the frontend is built using HTML, CSS, and JavaScript.
## Overview
The application allows users to input a text message and receive an instant sentiment classification—either **positive** or **negative**—based on state-of-the-art natural language processing techniques.
## Technologies Used
Backend
- Python
- Flask (REST API)
- Hugging Face Transformers (`pipeline` with DistilBERT)
- PyTorch
- Flask-CORS
### Frontend
- HTML5
- CSS3
- JavaScript (Fetch API)
## Installation and Usage
### 1. Clone the Repository
```bash
git clone https://github.com/Ahmadjamil888/Sentiment-Analysis-Model-AI.git
cd Sentiment-app
```
### Install dependencies
```
pip install -r requirements.txt
```
Run the Backend server
```
pip install -r requirements.txt
```
you will see this on port:5000:

Run the index.html file in your frontend folder
# Now on front end you should see this
For positive Sentiment
and for Negative Sentiment
