Spaces:
Paused
Paused
metadata
title: Broadway API
emoji: πΏπ€
colorFrom: red
colorTo: blue
sdk: docker
pinned: false
app_port: 3000
Convert a script to a clap
Public API
Using the API locally
curl -o screenplay.clap \
-X POST \
--data-binary @path/to/screenplay.txt \
http://localhost:3000
Installation
It is important that you make sure to use the correct version of Node (Node 20)
nvm use
npm i
- clone
.env
to.env.local
- edit
.env.local
to define the secrets / api access keys npm run start
Testing the Docker image
Note: you need to install Docker, and it needs to be already running.
You will also need to build it for your architecture.
docker build --platform linux/arm64 -t broadway-api .
docker run -it -p 7860:7860 broadway-api