Spaces:
Sleeping
Sleeping
| title: vizzy-server | |
| emoji: π | |
| colorFrom: gray | |
| colorTo: yellow | |
| sdk: docker | |
| pinned: false | |
| license: apache-2.0 | |
| short_description: Vizzy backend server | |
| startup_duration_timeout: 2h | |
| # Vizzy Backend - Making Visual Data Inclusive | |
| <img src="vizzy_icon.png" alt="Vizzy Icon" width="150px"> | |
| This is the **backend server** that supports the [Vizzy Chrome extension](https://github.com/sebastianschramm/vizzy-chrome-extension.git). | |
| It handles graph recoloring, description generation, and audio narration requests. | |
| --- | |
| ## π Installation | |
| ### 1. Clone the repository | |
| ```bash | |
| git clone https://github.com/sebastianschramm/vizzy-backend.git | |
| cd vizzy-backend | |
| ``` | |
| ### 2. Install dependencies with Poetry | |
| ```bash | |
| poetry install | |
| ``` | |
| ### 3. Start the server | |
| ```bash | |
| uvicorn server:app --host 0.0.0.0 --port 8000 --workers 1 --log-level info | |
| ``` | |
| The server will run on [http://localhost:8000](http://localhost:8000) | |
| --- | |
| ## π³ Docker | |
| You can also run the backend using Docker (it's compatible for huggingface spaces deployment): | |
| ### Build the image | |
| ```bash | |
| docker build -t vizzy-backend . | |
| ``` | |
| ### Run the container | |
| ```bash | |
| docker run -p 8000:7860 vizzy-backend | |
| ``` | |
| --- | |
| ## π API Endpoints | |
| - `POST /process` β process an image | |
| - `POST /processupload` β process an image from an upload form | |
| - `GET /health` β health check | |
| *(Exact payloads and responses can be found in the `/docs` endpoint when the server is running.)* | |
| --- | |
| ## π License | |
| Apache 2.0 License β see [LICENSE](LICENSE) for details. | |