RUC-GSAI / YuLan-Rec

MIT License
247 stars 14 forks source link

How to run the demo in the video? #6

Closed LIUQI-creat closed 8 months ago

LIUQI-creat commented 8 months ago

Hi, Thanks for your outstanding work! I am reproducing the demo and the command I am executing is python -u run_demo.py --config_file config/config.yaml --output_file messages.json --log_file simulation.log. However, the demo shows very little functionality, the figure is

973d9f016a973f2fecb1f71f139fba4

But the interface in the demo video looks like this:

119fb011c23998f6c9c1674d92f8a3c

How to run the functionality of the demo in the video, such as system-level and agent-level interventions, the ability to change agent configurations, the ability to display social relationships, the ability to play roles?

Hope you reply!

Paitesanshi commented 8 months ago

@LIUQI-creat Hi, thank you for your interest in our work! The new version of the front-end code will be made public after the paper is accepted. For now, you can achieve intervention and role-playing functionalities through the command line. To enable intervention at the beginning of each round, uncomment line 1210 in simulator.py. To enable role-playing, add the command line parameter --play_role=True and replace asyncio.run in agents/roleagent.py with input.

LIUQI-creat commented 8 months ago

@LIUQI-creat Hi, thank you for your interest in our work! The new version of the front-end code will be made public after the paper is accepted. For now, you can achieve intervention and role-playing functionalities through the command line. To enable intervention at the beginning of each round, uncomment line 1210 in simulator.py. To enable role-playing, add the command line parameter --play_role=True and replace asyncio.run in agents/roleagent.py with input.

Thank you for your patient reply! I sincerely wish your paper will be successfully accepted!

Paitesanshi commented 8 months ago

Thx for your kind words!