tals / magic-mirror

hack: CLIP + webcam = fun toy for parties :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Made for a party in San Francisco's 20 Misson and The Archive.

It continuesly captures and indexes what it sees, and displays the closeset matches from the recent past :)

How to use:

  1. Bring up the server (see below)
  2. locate it's IP. Lets assume xxx.xxx.xxx.xxx
  3. Ensure the computer running the browse can hit the server. Try hitting http://xxx.xxx.xxx.xxx:9999
  4. and then visit https://party.photoboo.app/. Final url should be something like https://party.photoboo.app/?http://xxx.xxx.xxx.xxx:9999

Components

Server

$ cd server
$ pip install -r requirements.txt
$ python app.py

Frontend

This is the web client, based on Svelte + Vite + Tailwind.

$ cd website
$ npm i
$ npm run dev

Caddy

Proxies everything. Does SSL termination

$ cd server
$ sudo caddy run

About

hack: CLIP + webcam = fun toy for parties :)


Languages

Language:Python 86.3%Language:TypeScript 6.5%Language:Svelte 6.0%Language:JavaScript 0.7%Language:Dockerfile 0.3%Language:HTML 0.2%Language:Shell 0.0%Language:CSS 0.0%