dimoZ commited on
Commit
cf0fdc1
·
verified ·
1 Parent(s): 9f65e8e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -13
README.md CHANGED
@@ -1,19 +1,34 @@
1
  ---
2
- title: AI Sentiment Essay Generator
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
  pinned: false
11
- short_description: This Streamlit app analyzes the sentiment (+ve,-ve,=)
12
  ---
13
 
14
- # Welcome to Streamlit!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
17
 
18
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
19
- forums](https://discuss.streamlit.io).
 
1
  ---
2
+ title: Sentiment-Aware Text Generator
3
+ emoji: 🤖
4
+ colorFrom: purple
5
+ colorTo: indigo
6
+ sdk: streamlit
7
+ app_file: app.py
 
 
8
  pinned: false
 
9
  ---
10
 
11
+ # Sentiment-Aware Text Generator
12
+
13
+ This app leverages Hugging Face pretrained models to generate paragraphs aligned with the sentiment of an input prompt.
14
+
15
+ ## How It Works
16
+
17
+ 1. The user enters a text prompt into the Streamlit web interface.
18
+ 2. The app uses a RoBERTa-based sentiment analysis model to classify the sentiment as positive, negative, or neutral.
19
+ 3. Based on this sentiment, it crafts a prompt for text generation.
20
+ 4. The Qwen text-generation model generates a paragraph matching the detected sentiment.
21
+ 5. The app displays both the detected sentiment and the generated paragraph interactively.
22
+
23
+ ## Requirements
24
+
25
+ The app requires Python packages listed in `requirements.txt`, including:
26
+
27
+ - streamlit
28
+ - transformers
29
+ - torch
30
 
31
+ ## Running the App
32
 
33
+ To run:
34
+ https://huggingface.co/spaces/dimoZ/AI_Sentiment_Essay_Generato