fly304625 / python-virtual-friend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%