This project implements a multi-attribute controlled text generation system that can generate personalized text based on the user's identity information such as occupation, hobbies, etc., combined with specific themes and emotions. At the same time, the system can also generate pictures that match the text content to provide more intuitive expression.
-
Generate attribute-controlled text: According to the attribute information such as occupation and interests provided by the user, combined with the theme and emotion, automatically generate personalized text that meets the requirements.
-
Generate matching pictures: According to the generated text content, automatically generate matching pictures to provide visual support for the text.
-
User interaction system: Provides a friendly user interface that allows users to easily enter personal information, select themes and emotions, and quickly obtain customized text and pictures.
The required dependencies are listed in the requirements.txt
file. You can install all dependencies using the following command:
pip install -r requirements.txt
-
Run the
run.py
file to start the system interface:python run.py
-
According to the prompts, enter the required personal information (such as occupation, interests, etc.) and select the theme and emotion.
-
Wait for the system to generate the corresponding text and matching pictures.