An open API service indexing awesome lists of open source software.

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

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