Skip to content

fly304625/python-virtual-friend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-virtual-friend

Uses a couple of neural networks to produce response as video notes.

For education purposes. Inspired by hackdaddy8000/unsuperior-ai-waifu

Collection

Requirements

  • Linux with X
  • Python 3.8+
  • OpenAI token (for GPT-3) or GPU with 15+ GB VRAM (for GPT-J)
  • Live2D Samples

Installation

  1. Install virtual python environment with huggingface transformers. doc
  2. Install python requirements python3 -m pip install -r requirements.txt
  3. Clone Live2D Samples and apply git patch.
  4. Build Samples/OpenGL/Demo/proj.linux.cmake project.

Run

Provide environment variables:

ENV Optional? Description
BOT_TOKEN No Token for Telegram Bot API
OPENAI_TOKEN Yes (if GPT-J used instead) Token for GPT-3
DISPLAY No X Display variable. Used for OpenGL rendering
LIVE2D_EXECUTABLE No Path for Live2D Demo executable

Run app:

python3 -m virtualfriend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%