# Erato: Interactive Lyrics Generation

## Quickstart

### Server

$ pdm install
$ pdm run uvicorn app:app --reload --port 5010

Create an `.env` file in this folder with

```
OPENAI_API_KEY="..."
ERATO_TOKEN="any token"
```

#### Deploys

```
pdm run modal deploy app.py
```

### UI

$ cd erato-ui

Create a `.env` file in `erato-ui`

```
REACT_APP_ERATO_TOKEN="token matching above"
```

$ npm install
$ cd ui && npm start

#### Deploys

Mergine will autodeploy frontend to Vercel.
