Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.54.0
metadata
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
- The user enters a text prompt into the Streamlit web interface.
- The app uses a RoBERTa-based sentiment analysis model to classify the sentiment as positive, negative, or neutral.
- Based on this sentiment, it crafts a prompt for text generation.
- The Qwen text-generation model generates a paragraph matching the detected sentiment.
- 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