ia-tv / README.md
jbilcke-hf's picture
jbilcke-hf HF staff
switch to a new, better library
826207d
|
raw
history blame
1.02 kB
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.

Note: this won't work on iOS due to an apparent ban on Media Source Extensions (available on iPadOS).

It should be possible however to use some other protocol or library.

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