A backend service for generating HTML components with AI
Clone this repo, then install using pip
. You'll probably want to create a virtual env.
git clone https://github.com/wandb/openui
cd openui/backend
pip install .
python -m openui
First be sure to install the package as editable, then passing --dev
as an argument will live reload any local changes.
pip install -e .
python -m openui --dev
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
The eval folder contains scripts for evaluating the performance of a model. It automates generating UI, taking screenshots of the UI, then asking gpt-4-vision-preview
to rate the elements. More details about the eval pipeline coming soon...