Spaces:
Sleeping
Sleeping
File size: 964 Bytes
ff4d556 cf0fdc1 ff4d556 cf0fdc1 ff4d556 cf0fdc1 ff4d556 cf0fdc1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
title: Sentiment-Aware Text Generator
emoji: 🤖
colorFrom: purple
colorTo: indigo
sdk: streamlit
app_file: app.py
pinned: false
---
# Sentiment-Aware Text Generator
This app leverages Hugging Face pretrained models to generate paragraphs aligned with the sentiment of an input prompt.
## How It Works
1. The user enters a text prompt into the Streamlit web interface.
2. The app uses a RoBERTa-based sentiment analysis model to classify the sentiment as positive, negative, or neutral.
3. Based on this sentiment, it crafts a prompt for text generation.
4. The Qwen text-generation model generates a paragraph matching the detected sentiment.
5. The app displays both the detected sentiment and the generated paragraph interactively.
## Requirements
The app requires Python packages listed in `requirements.txt`, including:
- streamlit
- transformers
- torch
## Running the App
To run:
https://huggingface.co/spaces/dimoZ/AI_Sentiment_Essay_Generato |