Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Add package-mode = false to pyproject.toml for Poetry 2.1+

Abi Rajae20964e2cc85
diff --git a/README.md b/README.md
index 46573149..e0dd70a6 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ We also just added experimental support for taking a video/screen recording of a
[Follow me on Twitter for updates](https://twitter.com/_abi_).
-## 🌍 Hosted Version
+## 🌍 Hosted Version
[Try it live on the hosted version (paid)](https://screenshottocode.com).
@@ -45,7 +45,7 @@ Keys needed:
If you'd like to run the app with Ollama open source models (not recommended due to poor quality results), [follow this comment](https://github.com/abi/screenshot-to-code/issues/354#issuecomment-2435479853).
-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 --upgrade poetry` if you don't have it):
```bash
cd backend
@@ -55,6 +55,7 @@ poetry install
poetry shell
poetry run uvicorn main:app --reload --port 7001
```
+
You can also set up the keys using the settings dialog on the front-end (click the gear icon after loading the frontend).
Run the frontend:
diff --git a/backend/pyproject.toml b/backend/pyproject.toml
index d1414017..b7fbe974 100644
--- a/backend/pyproject.toml
+++ b/backend/pyproject.toml
@@ -4,6 +4,7 @@ version = "0.1.0"
description = ""
authors = ["Abi Raja <[email protected]>"]
license = "MIT"
+package-mode = false
[tool.poetry.dependencies]
python = "^3.10"