diff --git a/README.md b/README.md index 239e2bf..7a56758 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,6 @@ echo "OPENAI_API_KEY=sk-your-key" > .env poetry install poetry shell poetry run uvicorn main:app --reload --port 7001 - -# Useful for debugging purposes when you don't want to waste GPT4-Vision credits -MOCK=true poetry run uvicorn main:app --reload --port 7001 ``` Run the frontend: @@ -48,6 +45,12 @@ Open http://localhost:5173 to use the app. If you prefer to run the backend on a different port, update VITE_WS_BACKEND_URL in `frontend/.env.local` +For debugging purposes, if you don't want to waste GPT4-Vision credits, you can run the backend in mock mode (which streams a pre-recorded response): + +```bash +MOCK=true poetry run uvicorn main:app --reload --port 7001 +``` + ## Docker If you have Docker installed on your system, in the root directory, run: @@ -69,12 +72,10 @@ The app will be up and running at http://localhost:5173. Note that you can't dev **NYTimes** -| Original | Replica | -| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| Original | Replica | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Screenshot 2023-11-20 at 12 54 03 PM | Screenshot 2023-11-20 at 12 59 56 PM | - - **Instagram page (with not Taylor Swift pics)** https://github.com/abi/screenshot-to-code/assets/23818/503eb86a-356e-4dfc-926a-dabdb1ac7ba1