AI-WebTV / README.md
jbilcke-hf's picture
jbilcke-hf HF staff
initial commit
e4eeb10
|
raw
history blame
844 Bytes
metadata
title: AI WebTV
emoji: 🔮
colorFrom: purple
colorTo: white
sdk: docker
pinned: false
app_port: 7860

A generative AI WebTV, powered by Zeroscope and Hugging Face.

Installation

Building and run without Docker

nvm use
npm i

First setup some env vars: WEBTV_VIDEOPATH="./sandbox/video" WEBTV_AUDIOPATH="./sandbox/audio" WEBTV_RTMP_URL="rtmp://localhost:1935/webtv"

In a terminal, run:

./scripts/init.sh

Then run:

./scripts/audio.sh

In another terminal, run:

./scripts/video.sh

In another terminal, run:

./scripts/stream.sh

In another terminal, run:

npm run start

Building and running with Docker

npm run docker

This script is a shortcut executing the following commands:

docker build -t ai-webtv .
docker run -it -p 7860:7860 ai-webtv