Iqra Haris commited on
Commit
bf2a12b
·
unverified ·
1 Parent(s): 2c20a76
Files changed (1) hide show
  1. README.md +30 -12
README.md CHANGED
@@ -1,26 +1,44 @@
1
- # Mlops_new_repo
2
  ---
3
- title: Demo
4
- emoji: 🌖
5
- colorFrom: purple
6
- colorTo: purple
7
  sdk: gradio
8
- sdk_version: 3.0.6
9
  app_file: app.py
10
  pinned: false
11
- license: cc
12
  ---
13
 
 
14
 
15
- [![Sync to Hugging Face hub](https://github.com/nogibjj/hugging-face/actions/workflows/main.yml/badge.svg)](https://github.com/nogibjj/hugging-face/actions/workflows/main.yml)
16
 
 
 
 
 
17
 
18
- [Try Demo Text Summarization Here](https://huggingface.co/spaces/noahgift/demo)
 
 
19
 
 
 
 
 
20
 
21
- ![mlops-hugging-face](https://user-images.githubusercontent.com/58792/170845235-7f00d61c-ea36-4d28-82d0-3a9b8c0f1769.png)
 
22
 
 
 
23
 
24
- ## References
 
 
 
 
 
 
 
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