Skip to content

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

Python

better organization of prompts directory

Abi Raja0080a5e2c49e
diff --git a/backend/prompts.py b/backend/prompts/__init__.py
similarity index 97%
rename from backend/prompts.py
rename to backend/prompts/__init__.py
index d3d3b18a..3a063ac3 100644
--- a/backend/prompts.py
+++ b/backend/prompts/__init__.py
@@ -2,14 +2,14 @@ from typing import List, Union
from openai.types.chat import ChatCompletionMessageParam, ChatCompletionContentPartParam
-from imported_code_prompts import (
+from prompts.imported_code_prompts import (
IMPORTED_CODE_BOOTSTRAP_SYSTEM_PROMPT,
IMPORTED_CODE_IONIC_TAILWIND_SYSTEM_PROMPT,
IMPORTED_CODE_REACT_TAILWIND_SYSTEM_PROMPT,
IMPORTED_CODE_TAILWIND_SYSTEM_PROMPT,
IMPORTED_CODE_SVG_SYSTEM_PROMPT,
)
-from screenshot_system_prompts import (
+from prompts.screenshot_system_prompts import (
BOOTSTRAP_SYSTEM_PROMPT,
IONIC_TAILWIND_SYSTEM_PROMPT,
REACT_TAILWIND_SYSTEM_PROMPT,
diff --git a/backend/imported_code_prompts.py b/backend/prompts/imported_code_prompts.py
similarity index 100%
rename from backend/imported_code_prompts.py
rename to backend/prompts/imported_code_prompts.py
diff --git a/backend/screenshot_system_prompts.py b/backend/prompts/screenshot_system_prompts.py
similarity index 100%
rename from backend/screenshot_system_prompts.py
rename to backend/prompts/screenshot_system_prompts.py
diff --git a/backend/test_prompts.py b/backend/prompts/test_prompts.py
similarity index 100%
rename from backend/test_prompts.py
rename to backend/prompts/test_prompts.py