Code Monkey home page Code Monkey logo

rvc-chat's Introduction

โš ๏ธ The main branch is bleeding edge: Expect frequent updates and many breaking changes after every commit

RVC Chat

This project allows you to create character cards (like NAI/character.ai/tavern) and model cards to easily chat with a LLM voiced by your favourite RVC model. Use the app to download the required files before using or manually download them here: https://huggingface.co/datasets/SayanoAI/RVC-Studio/tree/main

Features

  • Character card builder: model agnostic JSON character cards compatible with any LLM model
  • Model card builder: customize prompt format for each LLM to minimize parroting (e.g. LLM speaking for the user)
  • LLM E/RP: uncensored chat with your RVC model in real time using popular GGUF LLMs.

Planned Features

  • multimodal integration: send and receive pictures from your LLM model

Requirements

  • Python 3.8 or higher (developed and tested on v3.8.17)
  • Git

Easy Install

  1. Clone this repository or download the zip file and extract it.
  2. Double-click "conda-installer.bat" to install the latest version of conda package manager
  3. Double-click "conda-start.bat" (if you skipped step 2.)

Manual Installation

  1. Clone this repository or download the zip file.
  2. Navigate to the project directory and create a virtual environment with the command virtualenv venv.
  3. Activate the virtual environment with the command source venv/bin/activate on Linux/Mac or venv\Scripts\activate on Windows. Or use conda create -n RVC-Chat & conda activate RVC-Chat if you're using conda package manager.
  4. Install the required packages with the command pip install -r requirements.txt.
  5. Run the streamlit app with the command streamlit run Home.py.

Instructions for Chat page

  1. Download one of the following recommended LLMs and place them in your ./models/LLM folder (or use the homepage downloader):
  1. Navigate to LLM Server page and start the server after selecting the downloaded LLM
  2. Navigate to Chat page and write your name (this is what the LLM will call you)
  3. Select Your Character (or create one using Character Builder)
  4. Select a SD model for image generation
  5. Click "Start Chatting" to chat with your model

Feel free to explore other LLMs. (you will have to build your own model config)

Dockerize

Run docker compose up --build in the main project folder.

FAQs

  • nothing yet :D

Disclaimer

This project is for educational and research purposes only. The generated voice overs are not intended to infringe on any copyrights or trademarks of the original songs or text. The project does not endorse or promote any illegal or unethical use of the generative AI technology. The project is not responsible for any damages or liabilities arising from the use or misuse of the generated voice overs.

Credits

This project uses code and AI models from the following repositories:

We thank all the authors and contributors of these repositories for their amazing work and for making their code and models publicly available.

rvc-chat's People

Contributors

dependabot[bot] avatar sayanoai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

awtrisk

rvc-chat's Issues

Please tell me how to fix the error

When I press the "Start Chat" button, I get the error

"During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\katou\miniconda3\envs\RVC-Chat-main\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "D:\ai\RVC-Chat-main\RVC-Chat-main\pages\1_Chat.py", line 101, in
state.character = Character(
File "D:\ai\RVC-Chat-main\RVC-Chat-main\webui\chat.py", line 176, in init
self.model_data = self.load_model(self.model_file)
File "D:\ai\RVC-Chat-main\RVC-Chat-main\webui\chat.py", line 220, in load_model
self.model_data = load_model_data(fname)
File "D:\ai\RVC-Chat-main\RVC-Chat-main\webui\chat.py", line 126, in load_model_data
key = get_hash(model_file)
File "D:\ai\RVC-Chat-main\RVC-Chat-main\lib\model_utils.py", line 10, in get_hash
model_hash = hashlib.md5(open(model_path, 'rb').read()).hexdigest()
TypeError: expected str, bytes or os.PathLike object, not NoneType"

idea: add toppy, use min p

Toppy's a great 7B model - the best, in my opinion, and many others have also loved it for RP.
Aside from that, Min P is a sampler implemented in every open source LLM backend. (except transformers)

ModuleNotFoundError: No module named 'pybars'

I followed all the instructions from the github page, yet when I type the "streamlit run Home.py" command I get the "ModuleNotFoundError: No module named 'pybars'" error when the webui opens. I am using Python 3.11 for this by the way, in case that info is important.

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.