Giter Club home page Giter Club logo

chatwaifu's Introduction

ChatWaifu

Your virtual companian/waifu powered by chatgpt and other state-of-the-art AI models

preview

preview

install

  1. install requirements
git clone https://github.com/SynodicMonth/ChatWaifu.git
pip install -r requirements.txt
  1. install automatic1111's stable-diffusion-webui follow the instructions in https://github.com/AUTOMATIC1111/stable-diffusion-webui launch the stable-diffusion-webui with --api flag set the url of the diffusion webui server in interface.py
  2. prepare a openai api key (starting with sk-) and put it in openai_api_key.txt
  3. run python interface.py
  4. open http://localhost:7680 in your browser and chat with your waifu

using

  • follow the install instructions above, and enjoy chatting to your waifu.
  • chatgpt pass can be disabled in the settings, if so, the prompt will be passed directy to the diffusion.
  • diffusion pass can be disabled in the settings, if so, no image will be generated.

customize your waifu

  • create a yaml file using the template miku.yaml
  • id:the name of our waifu to show in the character list
  • ai_nickname: the nickname of your waifu used in the coversation
  • system_prompt: system prompt used in the chatgpt, write your waifu's background, personality and tongue here.
  • diffusion_positive_prompt: positive prompt for stable diffusion, write your waifu's appearance and outfit here, if a lora is used, put the lora tag here like <lora:xiao:0.7>
  • diffusion_negative_prompt: negative prompt for stable diffusion, use this accompany with the positive prompt.

any issues? feel free to open an issue, any PRs are welcomed!

credits

chatwaifu's People

Contributors

synodicmonth 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.