Code Monkey home page Code Monkey logo

characraft-ai's Introduction

中文

CharaCraft-AI

This project aims to help users create or fine-tune their own role-playing large language models, providing a novel and interactive chat experience.

Quick Start Guide

Follow these simple steps to quickly set up and run the CharaCraft-AI project.

1. Obtain the Project Code

Clone the project to your local environment:

git clone https://github.com/JunityZhan/CharaCraft-AI.git
cd CharaCraft-AI

2. Prepare the Environment

Switch to the project directory:

cd CharaCraft

3. Data Processing

3.1 Data Crawling

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.

3.2 Data Extraction

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.

4. Start the ChatBot

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!

characraft-ai's People

Contributors

junityzhan avatar leoxv1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.