character-studio / README.md
github-actions[bot]
Automated Deploy: 49714823cd4f8e3e8f1382d391cfb3b9732cc60c
801f06c
|
Raw History Blame Contribute Delete
3.16 kB
metadata
title: Character Studio
emoji: 🎬
colorFrom: purple
colorTo: pink
sdk: docker
app_port: 7860
pinned: false

Character Studio

A React/Vite + FastAPI MVP using two fixed fictional characters and the included generated image. The UI is a single Studio page: write exact dialogue, save/approve it, create a preview and download the result. Image uploads, character editing, Settings and Videos pages are not exposed.

Current small-model pipeline

Written dialogue → Kokoro-82M → SadTalker → FFmpeg. No Ollama, voice recordings or external AI API keys are required. R.Royale and Summer Breeze use different saved voice presets. Each portrait is animated independently and shown beside the other; natural shared reactions, body gestures and detailed dialect controls are not implemented.

The root Dockerfile prepares the frontend, backend and bundled model service for a Hugging Face NVIDIA GPU Space. It does not run tests or inference at build time. The talking-video button requires model-service readiness. Remote Docker build and GPU output quality remain unverified. See deployment steps and limitations.

Structure

backend/app/
  characters/       # saved character profiles, voice presets
  conversations/    # creator-written dialogue; optional AI adapter
  scenes/           # fixed cast and reference image
  generations/      # immutable input snapshots, queue, worker
  assets/           # asset records and downloads
  ai/               # provider factory and replaceable model adapters
  shared/           # storage, audio alignment, FFmpeg export
  system/           # availability checks
backend/model_services/  # Kokoro/SadTalker service; legacy model adapters
backend/demo_assets/     # fixed generated scene
frontend/src/
  app/                   # app shell and styles
  features/              # Studio, dialogue and scene components
  shared/                # API client, types and common components
scripts/start.py         # supervises API, worker and optional model service
docs/lightweight-mvp.md  # deployment and current capability details

Backend modules use controller/service/repository/model/schema files. ML models use provider files. The local SQLite database is created automatically; no separate database server is needed. Attach persistent storage on Hugging Face if scripts and outputs must survive a rebuild.

Frontend development

npm ci
npm run dev

Vite proxies /api to the backend. Build with npm run build. For backend-only development, install backend/requirements.txt, copy .env.example to .env, and run python scripts/start.py with the backend virtual environment active. Local defaults disable model inference; the GPU Docker deployment supplies its own defaults.

Legacy test files and heavier model adapters remain in the repository. Tests have not been updated or run for this simplified MVP. The older model-services document and requirements coverage describe the previous heavier design; use the lightweight guide for the current implementation.