This repository contains a simple Flask frontend that uploads an image, runs main.py on it, and serves the generated output.jpg.
Quick start (macOS, zsh):
- Make sure you have Homebrew Python 3.11 installed (we used
/opt/homebrew/bin/python3.11). - Create and activate the venv:
/opt/homebrew/bin/python3.11 -m venv .venv311
source .venv311/bin/activate
- Install dependencies:
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
- Set your
ROBOFLOW_API_KEY:- Create a
.envfile in the project root directory - Add this line:
ROBOFLOW_API_KEY=your_actual_api_key_here - Replace
your_actual_api_key_herewith your actual Roboflow API key - Get your API key from: https://app.roboflow.com/
- The
.envfile is automatically loaded byserver.pyusingpython-dotenv
- Create a
- Run the server:
python server.py
- Open http://127.0.0.1:5000 in a browser, upload an image, and view the resulting
output.jpg.