Lightweight FastAPI service that summarizes notes, generates flashcards, and creates quizzes using the OpenAI API.
Quick start
- Create a virtualenv and activate it:
python3 -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt-
Copy
.env.exampleto.envand setOPENAI_API_KEYand optionallySERVICE_API_KEY. -
Run the app:
uvicorn main:app --reload- Open the docs: http://127.0.0.1:8000/docs
Use the included render.yaml to deploy on Render. Set the environment variables in Render:
OPENAI_API_KEYSERVICE_API_KEY(optional, recommended)
The start command is:
uvicorn main:app --host 0.0.0.0 --port 10000A CI workflow is included at .github/workflows/python-app.yml. It installs dependencies and validates main.py on every push.