I provided two ways to run it: Web and Python.
Start:
python app.py
Then visit http://localhost:7860/
First, enter your question.
e.g.
①You scored 95 points in the test. Your classmates come to ask you about your score, how will you answer?
②You are late for work because party until very late last night, but you don't want to lose your job. What would you tell your boss instead?
Second, enter your Positive Personas.
e.g.
①"honest"
②"humorous and calm"
Third, enter your Negative Personas.
e.g.
①"untruthful"
②"angry and serious"
Forth, choose the Control Level.
The closer to the left (-2), the more negative; the closer to the right (+2), the more positive.
Click "Submit".
Directly run pipeline.py
python pipeline.py --question "You are late for work because you partied until very late last night, but you don't want to lose your job. What would you tell your boss instead?" --positive_personas humorous calm --negative_personas angry serious --level 2
Alternatively, modify the default parameters in the file directly and run it.