fix order and update README

This commit is contained in:
Abi Raja 2024-06-27 15:03:42 +08:00
parent d4e182cfe0
commit 51e06a4c4b
2 changed files with 9 additions and 7 deletions

View File

@ -7,6 +7,7 @@ https://github.com/abi/screenshot-to-code/assets/23818/6cebadae-2fe3-4986-ac6a-8
Supported stacks: Supported stacks:
- HTML + Tailwind - HTML + Tailwind
- HTML + CSS
- React + Tailwind - React + Tailwind
- Vue + Tailwind - Vue + Tailwind
- Bootstrap - Bootstrap
@ -46,8 +47,8 @@ The app has a React/Vite frontend and a FastAPI backend.
Keys needed: Keys needed:
* [OpenAI API key with access to GPT-4](https://github.com/abi/screenshot-to-code/blob/main/Troubleshooting.md) - [OpenAI API key with access to GPT-4](https://github.com/abi/screenshot-to-code/blob/main/Troubleshooting.md)
* Anthropic key (optional) - only if you want to use Claude Sonnet, or for experimental video support. - Anthropic key (optional) - only if you want to use Claude Sonnet, or for experimental video support.
Run the backend (I use Poetry for package management - `pip install poetry` if you don't have it): Run the backend (I use Poetry for package management - `pip install poetry` if you don't have it):

View File

@ -1,7 +1,8 @@
// Keep in sync with backend (prompts/types.py) // Keep in sync with backend (prompts/types.py)
// Order here determines order in dropdown
export enum Stack { export enum Stack {
HTML_CSS = "html_css",
HTML_TAILWIND = "html_tailwind", HTML_TAILWIND = "html_tailwind",
HTML_CSS = "html_css",
REACT_TAILWIND = "react_tailwind", REACT_TAILWIND = "react_tailwind",
BOOTSTRAP = "bootstrap", BOOTSTRAP = "bootstrap",
VUE_TAILWIND = "vue_tailwind", VUE_TAILWIND = "vue_tailwind",