AI-WebTV / README.md
jbilcke-hf's picture
jbilcke-hf HF staff
update readme to add the disclaimer
733cce1
|
raw
history blame
1.34 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.

This is just the frontend part, you will need the media-server (also open source) to make it work.

Warning: this is an experimental, proof-of-concept project made in a few days.

It is not ready for production use by other people! Also, this use models that should only be used for research purposes (no commercial usage).

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