A newer version of the Gradio SDK is available:
6.5.1
metadata
title: RealTime Text Classifier Gradio
emoji: π
colorFrom: yellow
colorTo: pink
sdk: gradio
sdk_version: 5.34.2
app_file: app.py
pinned: false
license: apache-2.0
short_description: π Real-time sentiment classifier with Transformers & Gradio
Real-Time Text Sentiment Classifier π
This project is a real-time sentiment analysis app built using a pre-trained Hugging Face model and deployed with Gradio.
π About the Model
- Pipeline:
text-classification - Task: Binary Sentiment Classification (Positive / Negative)
- Model: Pre-trained Transformer fine-tuned for sentiment analysis
π§ Features
- Detects sentiment (Positive/Negative) from text inputs.
- Lightweight and fast β great for real-time feedback apps.
- Clean UI built with Gradio for web-based interaction.
βοΈ Instructions for Users
This model is trained for binary sentiment classification β Positive and Negative only.
Neutral or mixed opinions may be interpreted as leaning toward one side.
For best results, input clearly positive or negative sentences.Example:
β "I love the features of this app!"
β "The app was okay, I guess."
π How to Run Locally
Install dependencies:
pip install -r requirements.txt
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference