This project aims to help users create or fine-tune their own role-playing large language models, providing a novel and interactive chat experience.
Follow these simple steps to quickly set up and run the CharaCraft-AI project.
Clone the project to your local environment:
git clone https://github.com/JunityZhan/CharaCraft-AI.git
cd CharaCraft-AI
Switch to the project directory:
cd CharaCraft
Taking the Chinese data from the game "Genshin Impact" as an example, with the data sourced from Demon God Quest, execute the following command to crawl the data:
python spider/run.py --urls https://wiki.biligame.com/ys/魔神任务 --depths 1
The crawled data will be saved in JSONL format and stored in the /CharaCraft/data
directory.
Extract the dialogue data for a specific character (e.g., Paimon):
python extract/dialogues.py --name 派蒙 --dialogues
The extracted text will be saved in the /CharaCraft/text
directory.
Start a chat session with Paimon, interacting as the Traveler:
python animate/webui.py --role_name 派蒙 --name 旅行者
After starting, visit localhost:7860
to chat with Paimon.
By following these steps, you should have successfully started the CharaCraft-AI project and are able to interact with the characters in the system. Enjoy your experience!