Spaces:
Build error
Build error
Iqra Haris commited on
Updated
Browse files
README.md
CHANGED
|
@@ -1,26 +1,44 @@
|
|
| 1 |
-
# Mlops_new_repo
|
| 2 |
---
|
| 3 |
-
title:
|
| 4 |
-
emoji:
|
| 5 |
-
colorFrom:
|
| 6 |
-
colorTo:
|
| 7 |
sdk: gradio
|
| 8 |
-
sdk_version: 3.0.
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
-
license: cc
|
| 12 |
---
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
|
|
|
| 22 |
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
[Watch YouTube Walkthrough](https://youtu.be/VYSGjUa5sc4)
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Sentiment Analysis App
|
| 3 |
+
emoji: 💬
|
| 4 |
+
colorFrom: "#00C9FF"
|
| 5 |
+
colorTo: "#92FE9D"
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: "3.0.0"
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Sentiment Analysis with Hugging Face and Gradio
|
| 13 |
|
| 14 |
+
This app performs sentiment analysis using a pre-trained model from Hugging Face's Transformers library. Built with Gradio, it provides an easy-to-use interface for predicting whether the sentiment of the input text is **positive**, **negative**, or **neutral**.
|
| 15 |
|
| 16 |
+
## Features
|
| 17 |
+
- Predicts sentiment (positive, negative, or neutral) based on the input text.
|
| 18 |
+
- Provides confidence scores for each prediction.
|
| 19 |
+
- Built with MLOps principles for easy updates and continuous deployment.
|
| 20 |
|
| 21 |
+
## How to Use
|
| 22 |
+
1. **Enter your text** in the input box.
|
| 23 |
+
2. Click **"Submit"** to analyze the sentiment and view the predicted result along with the confidence score.
|
| 24 |
|
| 25 |
+
## Example Inputs:
|
| 26 |
+
- **"I love spending time with my family!"** → Positive
|
| 27 |
+
- **"This weather is terrible."** → Negative
|
| 28 |
+
- **"The movie was okay, not great but not bad."** → Neutral
|
| 29 |
|
| 30 |
+
## Deployment
|
| 31 |
+
This app is continuously deployed using **GitHub Actions**. Every time changes are pushed to the `main` branch, the app will automatically update on this Hugging Face Space.
|
| 32 |
|
| 33 |
+
## How It Works
|
| 34 |
+
The app uses a pre-trained model from Hugging Face’s `transformers` library to classify the sentiment of any input text. It leverages Gradio to build an interactive web interface.
|
| 35 |
|
| 36 |
+
## Tech Stack
|
| 37 |
+
- **Hugging Face**: For the pre-trained sentiment analysis model.
|
| 38 |
+
- **Gradio**: For building the interactive web interface.
|
| 39 |
+
- **GitHub Actions**: For Continuous Integration and Continuous Deployment (CI/CD).
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
Feel free to test the app by entering text and analyzing its sentiment.
|
| 44 |
|
|
|